From c85526ca6de24b906e2e16b66050b13426032d12 Mon Sep 17 00:00:00 2001 From: Alexander van Gessel Date: Tue, 6 Jan 2009 16:28:51 +0100 Subject: [PATCH] Rename unit::new_level() to unit::new_scenario() --- src/playsingle_controller.cpp | 2 +- src/unit.cpp | 2 +- src/unit.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/playsingle_controller.cpp b/src/playsingle_controller.cpp index 02217e5e4ba..8ef371d0e60 100644 --- a/src/playsingle_controller.cpp +++ b/src/playsingle_controller.cpp @@ -425,7 +425,7 @@ LEVEL_RESULT playsingle_controller::play_scenario(const std::vector& 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); } } diff --git a/src/unit.cpp b/src/unit.cpp index 6fff102cc6b..675edc74bb9 100644 --- a/src/unit.cpp +++ b/src/unit.cpp @@ -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_ = ""; diff --git a/src/unit.hpp b/src/unit.hpp index 928850e3a61..dd65ceb3496 100644 --- a/src/unit.hpp +++ b/src/unit.hpp @@ -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()) {