Changeset - r10195:39addd8551d9
[Not reviewed]
master
0 1 0
glx - 16 years ago 2008-09-27 22:19:34
glx@openttd.org
(svn r14408) -Fix (r9205): generation seed set using -G was always overwritten by -g
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)