(svn r9205) -Fix: if you started openttd with '-g' you got the same map every run
authortruelight
Thu, 15 Mar 2007 14:34:10 +0000
changeset 6635 8a2f24f0c746
parent 6634 76303a89c056
child 6636 caa3ac4b670d
(svn r9205) -Fix: if you started openttd with '-g' you got the same map every run
src/openttd.cpp
--- a/src/openttd.cpp	Thu Mar 15 13:17:54 2007 +0000
+++ b/src/openttd.cpp	Thu Mar 15 14:34:10 2007 +0000
@@ -419,6 +419,8 @@
 				_switch_mode = SM_LOAD;
 			} else {
 				_switch_mode = SM_NEWGAME;
+				/* Give a random map */
+				generation_seed = InteractiveRandom();
 			}
 			break;
 		case 'G': generation_seed = atoi(mgo.opt); break;