game: begin to use the get_terrain method, ...

This commit is contained in:
ALONSO Laurent
2021-10-19 10:01:25 +02:00
committed by Celtic Minstrel
parent 1b7dcaab1f
commit 8951d0efc1
19 changed files with 171 additions and 206 deletions

View File

@@ -876,13 +876,9 @@ std::string get_m_name(mon_num_t num) {
return univ.scenario.scen_monsters[num].m_name;
}
std::string get_ter_name(ter_num_t num) {
std::string store_name = "Pit";
if((num == 90) && ((is_out()) || (is_town()) || ((is_combat()) && (which_combat_type == 1))));
else {
store_name = univ.scenario.ter_types[num].name;
}
return store_name;
if(num == 90 && (is_out() || is_town() || (is_combat() && which_combat_type == 1)))
return "Pit";
return univ.get_terrain(num).name;
}
void print_monst_name(mon_num_t m_type) {