fixed issue with map not printing any room with number above 9
This commit is contained in:
@ -126,7 +126,8 @@ position_list game_map::get_available_around(const position &pos) const {
|
||||
|
||||
void game_map::print(output *out) const {
|
||||
for (std::size_t i = 0; i < map.size(); ++i)
|
||||
out->print_char(remap_index(i), map[i] <= 9 ? '.' : map[i],
|
||||
out->print_char(remap_index(i),
|
||||
map[i] <= MAX_ROOM_CNT ? '.' : map[i],
|
||||
map[i] == '\\' || map[i] == '>' ||
|
||||
map[i] == '<' ? COLOR_PAIR(COLOR_BLUE) : A_NORMAL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user