From 5bf8d0f2695ab1fc527f83f9f20b3c2a69b7b3fb Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 24 Aug 2011 14:23:29 +0200 Subject: [PATCH] Apply patch from Debian fixing a potential SIGFPE. --- code/bullets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/bullets.cpp b/code/bullets.cpp index af8f1db..645a3d6 100644 --- a/code/bullets.cpp +++ b/code/bullets.cpp @@ -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))