Fixed lander position bug

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@295 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-12-02 20:03:49 +00:00
parent 395003ad4a
commit 5167100ba9
+2 -2
View File
@@ -1458,14 +1458,14 @@ InitPlanetSide (void)
pt = pSolarSysState->MenuState.first_item; pt = pSolarSysState->MenuState.first_item;
// Jitter the X landing point. // 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) if (pt.x < 0)
pt.x += (MAP_WIDTH << MAG_SHIFT); pt.x += (MAP_WIDTH << MAG_SHIFT);
else if (pt.x >= (MAP_WIDTH << MAG_SHIFT)) else if (pt.x >= (MAP_WIDTH << MAG_SHIFT))
pt.x -= (MAP_WIDTH << MAG_SHIFT); pt.x -= (MAP_WIDTH << MAG_SHIFT);
// Jitter the Y landing point. // 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) if (pt.y < 0)
pt.y = 0; pt.y = 0;
else if (pt.y >= (MAP_HEIGHT << MAG_SHIFT)) else if (pt.y >= (MAP_HEIGHT << MAG_SHIFT))