Apply patch from Debian fixing a potential SIGFPE.

This commit is contained in:
Guus Sliepen 2011-08-24 14:23:29 +02:00
parent 62d503d002
commit 5bf8d0f269
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void addBullet(object *theWeapon, object *attacker, int y, int dy)
tempY = (int)fabs(attacker->target->y - attacker->y);
steps = max(tempX, tempY);
if (steps == 0)
if (steps < 12)
steps = 12;
if (!(bullet->flags & WF_TIMEDEXPLOSION))