remove a really old comment that apparently wasn't needed
implement a string change since the string freeze is long gone.. ;-)
This commit is contained in:
parent
63fb67ae10
commit
fd81e0fd71
1 changed files with 2 additions and 9 deletions
|
@ -389,20 +389,12 @@ void play_controller::init_side(const unsigned int team_index, bool /*is_replay*
|
|||
bool play_controller::do_replay(const bool replaying){
|
||||
bool result = false;
|
||||
if(replaying) {
|
||||
// YogiHH: I can't see why we need another key_handler here
|
||||
// in addition to the one defined in play_controller.
|
||||
// Since this is causing problems with double execution of hotkeys,
|
||||
// I will comment it out
|
||||
/*
|
||||
const hotkey::basic_handler key_events_handler(gui_);
|
||||
*/
|
||||
LOG_NG << "doing replay " << player_number_ << "\n";
|
||||
try {
|
||||
result = ::do_replay(*gui_,map_,gameinfo_,units_,teams_,
|
||||
player_number_,status_,gamestate_);
|
||||
} catch(replay::error&) {
|
||||
//! @todo In next version after string freeze add to text ". continue playing?"
|
||||
if(gui::dialog(*gui_,"",_("The file you have tried to load is corrupt"),gui::OK_CANCEL).show())
|
||||
if(gui::dialog(*gui_,"",_("The file you have tried to load is corrupt. Continue playing?"),gui::OK_CANCEL).show())
|
||||
throw;
|
||||
|
||||
result = false;
|
||||
|
@ -584,6 +576,7 @@ void play_controller::enter_textbox()
|
|||
menu_handler_.get_textbox().close(*gui_);
|
||||
}
|
||||
|
||||
//! Find a human team (ie one we own) starting backwards from 'team_num'.
|
||||
int play_controller::find_human_team_before(const size_t team_num) const
|
||||
{
|
||||
if (team_num > teams_.size())
|
||||
|
|
Loading…
Add table
Reference in a new issue