mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 04:01:23 +00:00
Rename unit::new_level() to unit::new_scenario()
This commit is contained in:
parent
862030b806
commit
c85526ca6d
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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_ = "";
|
||||
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user