From 1103957445dbe0a991a8c1c10c0ae1d8b9967101 Mon Sep 17 00:00:00 2001 From: stpohle Date: Sat, 7 Jun 2003 19:30:12 +0000 Subject: [PATCH] Bugfixing the current crash problem... but still no cloe where it comes from --- src/bomb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bomb.c b/src/bomb.c index ce3403f..44174a7 100644 --- a/src/bomb.c +++ b/src/bomb.c @@ -13,6 +13,11 @@ draw_bomb (_bomb * bomb) dest; int x=bomb->pos.x >> 8, y= bomb->pos.y >> 8; + + if (x < 0 || y < 0 || x >= bman.fieldsize.x || y >= bman.fieldsize.y) { + d_fatal ("Draw Bomb out of range [%d,%d]\n", x,y); + return; + } if (bomb->state != BS_trigger || ((bomb->state == BS_trigger) && (bomb->to