made it so that invisibility is regained at the beginning of the unit's turn
This commit is contained in:
parent
9827d1568c
commit
a36816b827
1 changed files with 6 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue