summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-11 16:32:33 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-11 16:32:33 +0200
commit28bf7168e633629a6a049f639950a30f26102f40 (patch)
tree2caa6d5d68ebc2228409d32f8c1bd61fa8e81c16 /src/map.c
parenta50de53da1dc128ffbcdacba28353fe0825c4ac9 (diff)
automatic door
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index fdf8c4b..fb8b5bc 100644
--- a/src/map.c
+++ b/src/map.c
@@ -1,4 +1,5 @@
#include "../include/map.h"
+#include "../include/glass_doors.h"
int player_zoom = 30;
static int get_height_of_tile_tl(int current_height, int x, int y) {
@@ -271,6 +272,10 @@ void load_mapdata_into_world() {
if (o.type == OBJECT_ZOMBIE_SPAWNER) {
create_spawner((vec2){.x = o.position.x, .y = o.position.y});
}
+
+ if (o.type == OBJECT_GLASS_DOOR_H) {
+ create_glass_door(o);
+ }
}
}