Make the EXPERIMENTAL flag also work for GUI2 WML

This commit is contained in:
Alexander van Gessel 2010-02-07 16:47:50 +01:00
parent 25f107a5b4
commit 584ec8bfc1
2 changed files with 4 additions and 5 deletions

View file

@ -81,6 +81,10 @@ namespace game_config {
defines_map_["APPLE"] = preproc_define();
#endif
#ifdef EXPERIMENTAL
// use this to guard WML that depends on code guarded by EXPERIMENTAL
defines_map_["EXPERIMENTAL"] = preproc_define();
#endif /* EXPERIMENTAL */
}
void config_cache::get_config(const std::string& path, config& cfg)

View file

@ -1394,11 +1394,6 @@ void game_controller::set_unit_data()
void game_controller::load_game_cfg(const bool force)
{
#ifdef EXPERIMENTAL
// use this to guard WML that depends on code guarded by EXPERIMENTAL
cache_.add_define("EXPERIMENTAL");
#endif /* EXPERIMENTAL */
// make sure that 'debug mode' symbol is set if command line parameter is selected
if (game_config::debug) {
cache_.add_define("DEBUG_MODE");