Adds some door logic

This commit is contained in:
Linus Probert 2019-03-11 16:22:39 +01:00
parent 756afbae9d
commit e42e0243af
1 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,8 @@ map_add_door(Map *map, Position *tile_pos, MapTile *tile)
const Position *cr = &map->currentRoom;
Room *room = map->rooms[cr->x][cr->y];
switch_tile(map, tile_pos, tile, &room->doors[tile_pos->x][tile_pos->y]);
tile->door = true;
tile->animate = false;
}
void