fixed unit being able to move again on level up

This commit is contained in:
uid68803 2004-02-03 23:57:29 +00:00
parent 94390e2077
commit 57d5d8ebe4
2 changed files with 1 additions and 2 deletions

View file

@ -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);
}

View file

@ -261,8 +261,6 @@ void unit::new_level()
heal_all();
statusFlags_.clear();
moves_ = total_movement();
}
int unit::hitpoints() const