Remove TotalElementMass from the strip ship random seed mix because the player can dump cargo and change the seed; bug #567

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3680 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2011-09-01 18:58:13 +00:00
parent cb289eee65
commit db13af9444
+3 -2
View File
@@ -570,8 +570,9 @@ getStripRandomSeed (void)
x = LOGX_TO_UNIVERSE (GLOBAL_SIS (log_x)) / 100; x = LOGX_TO_UNIVERSE (GLOBAL_SIS (log_x)) / 100;
y = LOGY_TO_UNIVERSE (GLOBAL_SIS (log_y)) / 100; y = LOGY_TO_UNIVERSE (GLOBAL_SIS (log_y)) / 100;
// prime numbers help randomness // prime numbers help randomness
return y * 1013 + x + GLOBAL_SIS (TotalElementMass) return y * 1013 + x + GLOBAL_SIS (NumLanders)
+ GLOBAL_SIS (NumLanders); + GLOBAL_SIS (ModuleSlots[1]) + GLOBAL_SIS (ModuleSlots[4])
+ GLOBAL_SIS (ModuleSlots[7]) + GLOBAL_SIS (ModuleSlots[10]);
} }
static BOOLEAN static BOOLEAN