|
|
@ -14,6 +14,11 @@ draw_bomb (_bomb * bomb)
|
|
|
|
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 */
|
|
|
|
if (bomb->frameto-- == 0) {
|
|
|
|
if (bomb->frameto-- == 0) {
|
|
|
|