[[debug option changes]]

* removed debug command.

* disable debug before starting a MP game

* -d still works for single player if you want it in
  multiplayer you just have to set the bool.
This commit is contained in:
Jon Daniel 2005-03-22 12:53:23 +00:00
parent 3724a997ab
commit 535e39e17a
2 changed files with 2 additions and 2 deletions

View file

@ -208,6 +208,7 @@ void enter_wait_mode(display& disp, const config& game_config, game_data& data,
switch (res) {
case mp::ui::PLAY:
game_config::debug = false;
play_level(data, game_config, &level, disp.video(), state, std::vector<config*>());
recorder.clear();
@ -250,6 +251,7 @@ void enter_connect_mode(display& disp, const config& game_config, game_data& dat
switch (res) {
case mp::ui::PLAY:
game_config::debug = false;
play_level(data, game_config, &level, disp.video(), state, std::vector<config*>());
recorder.clear();

View file

@ -2426,8 +2426,6 @@ void turn_info::do_command(const std::string& str)
throw end_level_exception(QUIT);
} else if(cmd == "q!" || cmd == "q") {
throw end_level_exception(QUIT);
} else if(cmd == "debug") {
game_config::debug = (data != "off") ? true : false;
} else if(cmd == "ignore_replay_errors") {
game_config::ignore_replay_errors = (data != "off") ? true : false;
} else if(cmd == "n" && game_config::debug) {