The editor's random map generator was broken by the id change...

...from 2007-09-01T00:56:24Z!soliton@wesnoth.org

Fix the hard-coded value and add a WML-comment to warn about this hidden link
This commit is contained in:
Ali El Gariani 2007-09-22 03:30:34 +00:00
parent 6fbf10afbe
commit b8ce84ae92
2 changed files with 2 additions and 1 deletions

View file

@ -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."

View file

@ -132,7 +132,7 @@ std::string new_map_dialog(display& disp, const t_translation::t_letter fill_ter
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;