Fix Syreen, Slylandro, and Kohr-Ah ship effects to be screen-size independant.

SaMatra may still need work, tho Closes #93 (bug 199 has been opened on
the SaMatra issue)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@834 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2003-02-26 23:55:52 +00:00
parent 566d55e8a3
commit 67ce59584c
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ buzztrack_preprocess (PELEMENT ElementPtr)
}
else
{
#define ACTIVATE_RANGE SPACE_WIDTH
#define ACTIVATE_RANGE 224 /* Originally SPACE_WIDTH */
SIZE delta_x, delta_y;
ELEMENTPTR eptr;
+2 -1
View File
@@ -307,7 +307,8 @@ PELEMENT ElementPtr;
&& !GRAVITY_MASS (ObjPtr->mass_points)
&& CollisionPossible (ObjPtr, ElementPtr))
{
#define HARVEST_RANGE (SPACE_HEIGHT * 3 / 8)
//HARVEST_RANGE was originally (SPACE_HEIGHT * 3 / 8)
#define HARVEST_RANGE (208 * 3 / 8)
SIZE dx, dy;
if ((dx = ObjPtr->next.location.x
+5 -4
View File
@@ -186,17 +186,18 @@ spawn_crew (PELEMENT ElementPtr)
dy = -dy;
dx = WORLD_TO_DISPLAY (dx);
dy = WORLD_TO_DISPLAY (dy);
if (dx <= SPACE_HEIGHT && dy <= SPACE_HEIGHT
#define ABANDONER_RANGE 208 /* originally SPACE_HEIGHT */
if (dx <= ABANDONER_RANGE && dy <= ABANDONER_RANGE
&& (d_squared = (DWORD)((UWORD)dx * (UWORD)dx)
+ (DWORD)((UWORD)dy * (UWORD)dy)) <=
(DWORD)((UWORD)SPACE_HEIGHT * (UWORD)SPACE_HEIGHT))
(DWORD)((UWORD)ABANDONER_RANGE * (UWORD)ABANDONER_RANGE))
{
#define MAX_ABANDONERS 8
COUNT crew_loss;
crew_loss = ((MAX_ABANDONERS
* (SPACE_HEIGHT - square_root (d_squared)))
/ SPACE_HEIGHT) + 1;
* (ABANDONER_RANGE - square_root (d_squared)))
/ ABANDONER_RANGE) + 1;
if (crew_loss >= ObjPtr->crew_level)
crew_loss = ObjPtr->crew_level - 1;