test206
auto test206 =
q{--- test206
//
struct Tile {
bool blocked;
bool block_sight;
}
struct GameMap {
enum map_width = 40;
enum map_height = 40;
Tile[40] tiles;
}
void initialize_tiles(Tile[40]* map, i32 x) {
(*map)[x].block_sight = true;
}
void initialize_tiles2(i32 x) {
Tile[40] map;
map[x].block_sight = true;
}
};
tests passing
functionsvariables