Fixed so that random map generation works,

now the segfault should be fixed without consequences.
This commit is contained in:
Kristoffer Erlandsson 2004-06-20 21:37:39 +00:00
parent a89e203914
commit 43f03759b2

View file

@ -174,6 +174,10 @@ int main(int argc, char** argv)
preproc_map defines_map;
defines_map["MEDIUM"] = preproc_define();
defines_map["NORMAL"] = preproc_define();
// Multiplayer define is needed to access the random map generator
// settings. Maybe they should be moved? Or set an EDITOR define and
// make it load that way maybe.
defines_map["MULTIPLAYER"] = preproc_define();
config cfg;
try {
cfg.read(preprocess_file("data/game.cfg", &defines_map));