From 4589f290be52f065614f1bbb6e29dd1d00a889bc Mon Sep 17 00:00:00 2001 From: patty21 Date: Mon, 9 Jun 2003 17:20:39 +0000 Subject: [PATCH] internal test --- src/bomb.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bomb.c b/src/bomb.c index a59f82f..e798544 100644 --- a/src/bomb.c +++ b/src/bomb.c @@ -33,13 +33,17 @@ draw_bomb (_bomb * bomb) } dest.w = src.w = gfx.bomb.image->w; dest.h = src.h = gfx.block.y; - - dest.x = gfx.offset.x + (x* gfx.block.x/0x100); - dest.y = gfx.offset.y + (y* gfx.block.y/0x100); + dest.x = gfx.offset.x + gfx.postab[bomb->pos.x & 0x0FF]; + dest.x = gfx.offset.y + gfx.postab[bomb->pos.y & 0x0FF]; src.x = 0; src.y = src.h * bomb->frame; draw_stone (x>>8, y>>8); + if (bomb->moves) { + draw_stone ((x>>8)+1, y>>8); + draw_stone (x>>8, (y>>8)+1); + draw_stone ((x>>8)+1, (y>>8)+1); + } SDL_BlitSurface (gfx.bomb.image, &src, gfx.screen, &dest); gfx_AddUpdateRect (dest.x, dest.y, dest.w, dest.h);