Strictiy terrain special enum

This commit is contained in:
2014-12-06 20:59:50 -05:00
parent ea435825b7
commit 0629a70419
15 changed files with 171 additions and 193 deletions

View File

@@ -759,7 +759,8 @@ void change_cursor(location where_curs)
void move_sound(ter_num_t ter,short step){
static bool on_swamp = false;
short pic,spec,snd;
short pic,snd;
eTerSpec spec;
pic = scenario.ter_types[ter].picture;
spec = scenario.ter_types[ter].special;
@@ -772,7 +773,7 @@ void move_sound(ter_num_t ter,short step){
}else on_swamp = false;
if ((monsters_going == false) && (overall_mode < MODE_COMBAT) && (univ.party.in_boat >= 0)) {// is on boat ?
if (spec == TER_SPEC_TOWN_ENTRANCE) //town entrance ?
if(spec == eTerSpec::TOWN_ENTRANCE)
return;
play_sound(48); //play boat sound
}