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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user