Remove unused parameters.
This commit is contained in:
parent
d87a0fcc31
commit
93e6c1064c
|
@ -385,7 +385,7 @@ void destroyAlien(object *bullet, object *theEnemy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char checkPlayerShockDamage(float x, float y, int radius)
|
char checkPlayerShockDamage(float x, float y)
|
||||||
{
|
{
|
||||||
// Don't let the player be hurt by an explosion after they have completed
|
// Don't let the player be hurt by an explosion after they have completed
|
||||||
// all the mission objectives. That would be *really* annoying!
|
// all the mission objectives. That would be *really* annoying!
|
||||||
|
@ -775,7 +775,7 @@ void doBullets()
|
||||||
addExplosion(bullet->x + Math::rrand(-35, 35), bullet->y + Math::rrand(-35, 35), E_BIG_EXPLOSION);
|
addExplosion(bullet->x + Math::rrand(-35, 35), bullet->y + Math::rrand(-35, 35), E_BIG_EXPLOSION);
|
||||||
|
|
||||||
if (bullet->flags & WF_TIMEDEXPLOSION)
|
if (bullet->flags & WF_TIMEDEXPLOSION)
|
||||||
if (checkPlayerShockDamage(bullet->x, bullet->y, 75))
|
if (checkPlayerShockDamage(bullet->x, bullet->y))
|
||||||
setInfoLine("Warning: Missile Shockwave Damage!!", FONT_RED);
|
setInfoLine("Warning: Missile Shockwave Damage!!", FONT_RED);
|
||||||
}
|
}
|
||||||
bullet->active = 0;
|
bullet->active = 0;
|
||||||
|
|
|
@ -169,7 +169,7 @@ void explodeMine(collectables *collectable)
|
||||||
for (int i = 0 ; i < 10 ; i++)
|
for (int i = 0 ; i < 10 ; i++)
|
||||||
addExplosion(collectable->x + rand() % 25 - rand() % 25, collectable->y + rand() % 25 - rand() % 25, E_BIG_EXPLOSION);
|
addExplosion(collectable->x + rand() % 25 - rand() % 25, collectable->y + rand() % 25 - rand() % 25, E_BIG_EXPLOSION);
|
||||||
|
|
||||||
if (checkPlayerShockDamage(collectable->x, collectable->y, 50))
|
if (checkPlayerShockDamage(collectable->x, collectable->y))
|
||||||
setInfoLine("Warning: Mine damage to shield!!", FONT_RED);
|
setInfoLine("Warning: Mine damage to shield!!", FONT_RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ extern void setInfoLine(const char *in, int color);
|
||||||
extern object *addCargo(object *owner, int cargoType);
|
extern object *addCargo(object *owner, int cargoType);
|
||||||
extern void addExplosion(float x, float y, int type);
|
extern void addExplosion(float x, float y, int type);
|
||||||
extern void playSound(int sid);
|
extern void playSound(int sid);
|
||||||
extern char checkPlayerShockDamage(float x, float y, int radius);
|
extern char checkPlayerShockDamage(float x, float y);
|
||||||
|
|
||||||
extern globalEngineVariables engine;
|
extern globalEngineVariables engine;
|
||||||
extern object player;
|
extern object player;
|
||||||
|
|
|
@ -303,7 +303,7 @@ void checkTimer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void evaluteRequirement(int type, int id, int value, int *completed, int *targetValue, int fontColor)
|
void evaluteRequirement(int type, int id, int *completed, int *targetValue, int fontColor)
|
||||||
{
|
{
|
||||||
char message[25];
|
char message[25];
|
||||||
|
|
||||||
|
@ -417,7 +417,7 @@ void updateMissionRequirements(int type, int id, int value)
|
||||||
{
|
{
|
||||||
matched = 1;
|
matched = 1;
|
||||||
currentMission.targetValue1[i] -= value;
|
currentMission.targetValue1[i] -= value;
|
||||||
evaluteRequirement(type, id, value, ¤tMission.completed1[i], ¤tMission.targetValue1[i], FONT_CYAN);
|
evaluteRequirement(type, id, ¤tMission.completed1[i], ¤tMission.targetValue1[i], FONT_CYAN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -433,7 +433,7 @@ void updateMissionRequirements(int type, int id, int value)
|
||||||
if ((currentMission.secondaryType[i] == type) && ((currentMission.target2[i] == id) || (currentMission.target2[i] == CD_ANY)))
|
if ((currentMission.secondaryType[i] == type) && ((currentMission.target2[i] == id) || (currentMission.target2[i] == CD_ANY)))
|
||||||
{
|
{
|
||||||
currentMission.targetValue2[i] -= value;
|
currentMission.targetValue2[i] -= value;
|
||||||
evaluteRequirement(type, id, value, ¤tMission.completed2[i], ¤tMission.targetValue2[i], FONT_YELLOW);
|
evaluteRequirement(type, id, ¤tMission.completed2[i], ¤tMission.targetValue2[i], FONT_YELLOW);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue