Rename unit::new_level() to unit::new_scenario()

This commit is contained in:
Alexander van Gessel 2009-01-06 16:28:51 +01:00
parent 862030b806
commit c85526ca6d
3 changed files with 3 additions and 3 deletions

View File

@ -425,7 +425,7 @@ LEVEL_RESULT playsingle_controller::play_scenario(const std::vector<config*>& st
if(player) {
LOG_NG << "Added unit " << un->second.id() << ", " << un->second.name() << "\n";
un->second.new_turn();
un->second.new_level();
un->second.new_scenario();
player->available_units.push_back(un->second);
}
}

View File

@ -908,7 +908,7 @@ void unit::end_turn()
// Clear interrupted move
set_interrupted_move(map_location());
}
void unit::new_level()
void unit::new_scenario()
{
ai_special_ = "";

View File

@ -143,7 +143,7 @@ public:
void unit_hold_position() { hold_position_ = end_turn_ = true; }
void new_turn();
void end_turn();
void new_level();
void new_scenario();
/** Called on every draw */
void refresh(const game_display& disp,const map_location& loc) {
if (state_ == STATE_FORGET && anim_ && anim_->animation_finished_potential()) {