|
|
|
@ -154,7 +154,7 @@ get_bomb_on (int x, int y, _point bombs[])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
draw_fire (int x, int y, int d)
|
|
|
|
|
draw_fire (int x, int y, int d, int frame)
|
|
|
|
|
{
|
|
|
|
|
SDL_Rect src,
|
|
|
|
|
dest;
|
|
|
|
@ -165,7 +165,7 @@ draw_fire (int x, int y, int d)
|
|
|
|
|
dest.x = gfx.offset.x + x * gfx.block.x;
|
|
|
|
|
dest.y = gfx.offset.y + y * gfx.block.y;
|
|
|
|
|
|
|
|
|
|
src.y = 0;
|
|
|
|
|
src.y = frame * src.w;
|
|
|
|
|
src.x = d * src.w;
|
|
|
|
|
|
|
|
|
|
SDL_BlitSurface (gfx.fire.image, &src, gfx.screen, &dest);
|
|
|
|
@ -328,7 +328,7 @@ do_explosion (int p, int b)
|
|
|
|
|
BS_off && bomb->firerst[d] == -1) {
|
|
|
|
|
bomb->firer[d]++;
|
|
|
|
|
bman.field[bomb->pos.x + dx][bomb->pos.y + dy].ex[d]++;
|
|
|
|
|
draw_fire (bomb->pos.x + dx, bomb->pos.y + dy, d);
|
|
|
|
|
draw_fire (bomb->pos.x + dx, bomb->pos.y + dy, d, 0);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
bomb->firerst[d] = bomb->firer[d];
|
|
|
|
|