Bugfixing the current crash problem... but still no cloe where it comes from

origin
stpohle 23 years ago
parent aad984176b
commit 1103957445

@ -13,6 +13,11 @@ draw_bomb (_bomb * bomb)
dest; dest;
int x=bomb->pos.x >> 8, int x=bomb->pos.x >> 8,
y= bomb->pos.y >> 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<BOMB_TIMEOUT*TIME_FACTOR))) { if (bomb->state != BS_trigger || ((bomb->state == BS_trigger) && (bomb->to<BOMB_TIMEOUT*TIME_FACTOR))) {
/* check the framenumber */ /* check the framenumber */

Loading…
Cancel
Save