put back in the change that 2007-07-03T07:18:32Z!esr@thyrsus.com backed out
This commit is contained in:
parent
32e97d0b33
commit
989e6e0a5f
1 changed files with 6 additions and 6 deletions
12
src/game.cpp
12
src/game.cpp
|
@ -831,16 +831,16 @@ bool game_controller::new_campaign()
|
|||
std::copy(difficulties.begin(),difficulties.end(),difficulty_options.begin());
|
||||
}
|
||||
|
||||
const int res = gui::show_dialog(disp(),NULL,_("Difficulty"),
|
||||
_("Select difficulty level:"),
|
||||
gui::OK_CANCEL,&difficulty_options);
|
||||
if(res == -1) {
|
||||
gui::basic_dialog dlg(disp(), _("Difficulty"),
|
||||
_("Select difficulty level:"), gui::OK_CANCEL);
|
||||
dlg.set_menu(difficulty_options);
|
||||
if(dlg.show() == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
state_.difficulty = difficulties[res];
|
||||
state_.difficulty = difficulties[dlg.result()];
|
||||
defines_map_.clear();
|
||||
defines_map_[difficulties[res]] = preproc_define();
|
||||
defines_map_[difficulties[dlg.result()]] = preproc_define();
|
||||
}
|
||||
#ifdef HAVE_PYTHON
|
||||
defines_map_["PYTHON"] = preproc_define();
|
||||
|
|
Loading…
Add table
Reference in a new issue