From 28bf7168e633629a6a049f639950a30f26102f40 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 11 May 2024 16:32:33 +0200 Subject: automatic door --- src/map.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map.c') 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); + } } } -- cgit v1.2.3-70-g09d2