Apply patch from Debian fixing a potential SIGFPE.
This commit is contained in:
parent
62d503d002
commit
5bf8d0f269
|
@ -110,7 +110,7 @@ void addBullet(object *theWeapon, object *attacker, int y, int dy)
|
||||||
tempY = (int)fabs(attacker->target->y - attacker->y);
|
tempY = (int)fabs(attacker->target->y - attacker->y);
|
||||||
steps = max(tempX, tempY);
|
steps = max(tempX, tempY);
|
||||||
|
|
||||||
if (steps == 0)
|
if (steps < 12)
|
||||||
steps = 12;
|
steps = 12;
|
||||||
|
|
||||||
if (!(bullet->flags & WF_TIMEDEXPLOSION))
|
if (!(bullet->flags & WF_TIMEDEXPLOSION))
|
||||||
|
|
Loading…
Reference in New Issue