Fixed compilation with disabled editor. (Patch by vigg.)
This commit is contained in:
parent
bfd3b495c9
commit
3c5f031cf1
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue