made it so that invisibility is regained at the beginning of the unit's turn

This commit is contained in:
Dave White 2003-12-03 17:11:24 +00:00
parent 9827d1568c
commit a36816b827

View file

@ -177,6 +177,12 @@ LEVEL_RESULT play_level(game_data& gameinfo, config& terrain_config,
if(team_units(units,player_number) == 0)
continue;
for(unit_map::iterator i = units.begin(); i != units.end(); ++i) {
if(i->second.side() == player_number) {
i->second.new_turn();
}
}
if(!first_time) {
team_it->new_turn();
@ -344,11 +350,6 @@ LEVEL_RESULT play_level(game_data& gameinfo, config& terrain_config,
game_events::fire(event_stream.str());
}
for(unit_map::iterator i = units.begin();
i != units.end(); ++i) {
i->second.new_turn();
}
} catch(end_level_exception& end_level) {
if(end_level.result == QUIT || end_level.result == REPLAY) {