From 5167100ba9aad44938688cd1ac9ab2105f4fa938 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Mon, 2 Dec 2002 20:03:49 +0000 Subject: [PATCH] Fixed lander position bug git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@295 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/lander.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/planets/lander.c b/sc2/src/sc2code/planets/lander.c index 31208a28c..42949b543 100644 --- a/sc2/src/sc2code/planets/lander.c +++ b/sc2/src/sc2code/planets/lander.c @@ -1458,14 +1458,14 @@ InitPlanetSide (void) pt = pSolarSysState->MenuState.first_item; // Jitter the X landing point. - pt.x -= RANDOM_MISS + (SIZE)(LOWORD (Random ()) % (RANDOM_MISS << 1)); + pt.x -= RANDOM_MISS - (SIZE)(LOWORD (Random ()) % (RANDOM_MISS << 1)); if (pt.x < 0) pt.x += (MAP_WIDTH << MAG_SHIFT); else if (pt.x >= (MAP_WIDTH << MAG_SHIFT)) pt.x -= (MAP_WIDTH << MAG_SHIFT); // Jitter the Y landing point. - pt.y -= RANDOM_MISS + (SIZE)(LOWORD (Random ()) % (RANDOM_MISS << 1)); + pt.y -= RANDOM_MISS - (SIZE)(LOWORD (Random ()) % (RANDOM_MISS << 1)); if (pt.y < 0) pt.y = 0; else if (pt.y >= (MAP_HEIGHT << MAG_SHIFT))