From db13af9444ecc57abfe9b9639814bc24945147df Mon Sep 17 00:00:00 2001 From: avolkov Date: Thu, 1 Sep 2011 18:58:13 +0000 Subject: [PATCH] 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 --- sc2/src/uqm/comm/melnorm/melnorm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sc2/src/uqm/comm/melnorm/melnorm.c b/sc2/src/uqm/comm/melnorm/melnorm.c index b72f8a745..f72a0bada 100644 --- a/sc2/src/uqm/comm/melnorm/melnorm.c +++ b/sc2/src/uqm/comm/melnorm/melnorm.c @@ -570,8 +570,9 @@ getStripRandomSeed (void) 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