diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-11 16:32:33 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-11 16:32:33 +0200 |
| commit | 28bf7168e633629a6a049f639950a30f26102f40 (patch) | |
| tree | 2caa6d5d68ebc2228409d32f8c1bd61fa8e81c16 /src/map.c | |
| parent | a50de53da1dc128ffbcdacba28353fe0825c4ac9 (diff) | |
automatic door
Diffstat (limited to 'src/map.c')
| -rw-r--r-- | src/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); + } } } |
