Author: ilor
Date: Thu Jun 12 19:07:54 2008
New Revision: 27124
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27124&view=rev
Log:
set EDITOR2 preprocessor symbol only when launching the editor, this also fixes
a bug
Modified:
trunk/src/game.cpp
Modified: trunk/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=27124&r1=27123&r2=27124&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Thu Jun 12 19:07:54 2008
@@ -2097,9 +2097,6 @@
} else {
defines_map_["NORMAL"] = preproc_define();
defines_map_["MEDIUM"] = preproc_define();
-#ifdef USE_EDITOR2
- defines_map_["EDITOR2"] = preproc_define();
-#endif
}
//refresh_game_cfg();
@@ -2204,6 +2201,9 @@
#ifdef USE_EDITOR2
editor2::EXIT_STATUS game_controller::start_editor()
{
+ reset_game_cfg();
+ defines_map_["EDITOR2"] = preproc_define();
+ refresh_game_cfg();
return editor2::start(game_config_, video_);
}
#endif
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits