mail[Wesnoth-commits] r20660 - in /trunk: data/multiplayer/scenarios/Random_Scenario.cfg src/editor/editor_dialogs.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on September 22, 2007 - 05:31:
Author: alink
Date: Sat Sep 22 05:30:34 2007
New Revision: 20660

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20660&view=rev
Log:
The random map generator of the editor was broken by the id change from r20012
Fix the hard-coded value and add a WML-comment to warn about this hidden link

Modified:
    trunk/data/multiplayer/scenarios/Random_Scenario.cfg
    trunk/src/editor/editor_dialogs.cpp

Modified: trunk/data/multiplayer/scenarios/Random_Scenario.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/scenarios/Random_Scenario.cfg?rev=20660&r1=20659&r2=20660&view=diff
==============================================================================
--- trunk/data/multiplayer/scenarios/Random_Scenario.cfg (original)
+++ trunk/data/multiplayer/scenarios/Random_Scenario.cfg Sat Sep 22 05:30:34 
2007
@@ -1,6 +1,7 @@
 #textdomain wesnoth-multiplayer
 
 [multiplayer]
+    # This id is currently hardcoded by the random map generator of the 
editor
     id=multiplayer_Random_Map
     name= _ "Random map"
     description= _ "Randomly generated map. Note: random maps are often 
unbalanced, but if you have time, you can regenerate them until you get a 
good one."

Modified: trunk/src/editor/editor_dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor/editor_dialogs.cpp?rev=20660&r1=20659&r2=20660&view=diff
==============================================================================
--- trunk/src/editor/editor_dialogs.cpp (original)
+++ trunk/src/editor/editor_dialogs.cpp Sat Sep 22 05:30:34 2007
@@ -132,7 +132,7 @@
        if (random_map_generator == NULL) {
                // Initialize the map generator if this is the first call,
                // otherwise keep the settings and such.
-               const config* const toplevel_cfg = 
game_config.find_child("multiplayer","id","ranmap");
+               const config* const toplevel_cfg = 
game_config.find_child("multiplayer","id","multiplayer_Random_Map");
                const config* const cfg = toplevel_cfg == NULL ? NULL : 
toplevel_cfg->child("generator");
                if (cfg == NULL) {
                        config dummy_cfg;




Related Messages


Powered by MHonArc, Updated Sat Sep 22 06:00:56 2007