|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: field.c,v 1.37 2003/07/23 01:43:34 stpohle Exp $ */
|
|
|
|
/* $Id: field.c,v 1.38 2003/07/23 02:10:47 stpohle Exp $ */
|
|
|
|
/* field.c - procedures which are needed to control the field */
|
|
|
|
/* field.c - procedures which are needed to control the field */
|
|
|
|
|
|
|
|
|
|
|
|
#include "bomberclone.h"
|
|
|
|
#include "bomberclone.h"
|
|
|
@ -149,7 +149,7 @@ draw_stone (int x, int y)
|
|
|
|
dest.h = src.h = gfx.field[map.field[x][y+1].type].h - gfx.field[map.field[x][y+1].type].w;
|
|
|
|
dest.h = src.h = gfx.field[map.field[x][y+1].type].h - gfx.field[map.field[x][y+1].type].w;
|
|
|
|
dest.w = src.w = gfx.field[map.field[x][y+1].type].w;
|
|
|
|
dest.w = src.w = gfx.field[map.field[x][y+1].type].w;
|
|
|
|
dest.y = gfx.offset.y + ((gfx.block.y * (y+1)) - (gfx.field[map.field[x][y+1].type].h - gfx.field[map.field[x][y+1].type].w));
|
|
|
|
dest.y = gfx.offset.y + ((gfx.block.y * (y+1)) - (gfx.field[map.field[x][y+1].type].h - gfx.field[map.field[x][y+1].type].w));
|
|
|
|
gfx_blit (gfx.field[map.field[x][y+1].type].image, &src, gfx.screen, &dest, (y << 8) + 3);
|
|
|
|
gfx_blit (gfx.field[map.field[x][y+1].type].image, &src, gfx.screen, &dest, (y << 8) + 5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// draw explosions if there is any
|
|
|
|
// draw explosions if there is any
|
|
|
|