fixed unit being able to move again on level up
This commit is contained in:
parent
94390e2077
commit
57d5d8ebe4
2 changed files with 1 additions and 2 deletions
|
@ -548,6 +548,7 @@ redo_turn:
|
|||
//add all the units that survived the scenario
|
||||
for(std::map<gamemap::location,unit>::iterator un = units.begin(); un != units.end(); ++un) {
|
||||
if(un->second.side() == 1) {
|
||||
un->second.new_turn();
|
||||
un->second.new_level();
|
||||
state_of_game.available_units.push_back(un->second);
|
||||
}
|
||||
|
|
|
@ -261,8 +261,6 @@ void unit::new_level()
|
|||
|
||||
heal_all();
|
||||
statusFlags_.clear();
|
||||
|
||||
moves_ = total_movement();
|
||||
}
|
||||
|
||||
int unit::hitpoints() const
|
||||
|
|
Loading…
Add table
Reference in a new issue