Fixed compilation with disabled editor. (Patch by vigg.)

This commit is contained in:
Guillaume Melquiond 2010-09-20 06:55:13 +00:00
parent bfd3b495c9
commit 3c5f031cf1

View file

@ -594,12 +594,16 @@ bool game_controller::init_config(const bool force)
if (test_mode_)
cache_.add_define("TEST");
#ifndef DISABLE_EDITOR
if (jump_to_editor_)
cache_.add_define("EDITOR");
if (!multiplayer_mode_ && !test_mode_ && !jump_to_editor_)
cache_.add_define("TITLE_SCREEN");
#else
if (!multiplayer_mode_ && !test_mode_)
cache_.add_define("TITLE_SCREEN");
#endif
load_game_cfg(force);