From: <av...@us...> - 2011-09-01 18:58:19
|
Revision: 3680 http://sc2.svn.sourceforge.net/sc2/?rev=3680&view=rev Author: avolkov Date: 2011-09-01 18:58:13 +0000 (Thu, 01 Sep 2011) Log Message: ----------- Remove TotalElementMass from the strip ship random seed mix because the player can dump cargo and change the seed; bug #567 Modified Paths: -------------- trunk/sc2/src/uqm/comm/melnorm/melnorm.c Modified: trunk/sc2/src/uqm/comm/melnorm/melnorm.c =================================================================== --- trunk/sc2/src/uqm/comm/melnorm/melnorm.c 2011-09-01 17:48:11 UTC (rev 3679) +++ trunk/sc2/src/uqm/comm/melnorm/melnorm.c 2011-09-01 18:58:13 UTC (rev 3680) @@ -570,8 +570,9 @@ x = LOGX_TO_UNIVERSE (GLOBAL_SIS (log_x)) / 100; y = LOGY_TO_UNIVERSE (GLOBAL_SIS (log_y)) / 100; // prime numbers help randomness - return y * 1013 + x + GLOBAL_SIS (TotalElementMass) - + GLOBAL_SIS (NumLanders); + return y * 1013 + x + GLOBAL_SIS (NumLanders) + + GLOBAL_SIS (ModuleSlots[1]) + GLOBAL_SIS (ModuleSlots[4]) + + GLOBAL_SIS (ModuleSlots[7]) + GLOBAL_SIS (ModuleSlots[10]); } static BOOLEAN This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |