(svn r14408) -Fix (r9205): generation seed set using -G was always overwritten by -g

This commit is contained in:
glx 2008-09-27 22:19:34 +00:00
parent 76c13beef0
commit f2d7c48b31
1 changed files with 4 additions and 2 deletions

View File

@ -481,8 +481,10 @@ int ttd_main(int argc, char *argv[])
}
_switch_mode = SM_NEWGAME;
/* Give a random map */
generation_seed = InteractiveRandom();
/* Give a random map if no seed has been given */
if (generation_seed == GENERATE_NEW_SEED) {
generation_seed = InteractiveRandom();
}
break;
case 'G': generation_seed = atoi(mgo.opt); break;
case 'c': _config_file = strdup(mgo.opt); break;