|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: tileset.c,v 1.4 2003/07/22 23:15:31 stpohle Exp $ */
|
|
|
|
/* $Id: tileset.c,v 1.5 2003/07/24 04:18:43 stpohle Exp $ */
|
|
|
|
/* load and select tilesets */
|
|
|
|
/* load and select tilesets */
|
|
|
|
|
|
|
|
|
|
|
|
#include "bomberclone.h"
|
|
|
|
#include "bomberclone.h"
|
|
|
@ -205,10 +205,9 @@ tileset_load (char *tilesetname)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gfx.field[i].frames = tmpimage->h / gfx.field[i].h;
|
|
|
|
gfx.field[i].frames = tmpimage->h / gfx.field[i].h;
|
|
|
|
gfx.field[i].h = ((float) ((float)gfx.field[i].h / (float)GFX_IMGSIZE) * (float)gfx.block.y);
|
|
|
|
gfx.field[i].h = (float)((float)gfx.field[i].h / (float)GFX_IMGSIZE) * (float)gfx.block.y;
|
|
|
|
gfx.field[i].w = (gfx.field[i].w / GFX_IMGSIZE) * gfx.block.x;
|
|
|
|
gfx.field[i].w = (float)((float)gfx.field[i].w / (float)GFX_IMGSIZE) * (float)gfx.block.x;
|
|
|
|
tmpimage1 = scale_image (tmpimage, (tmpimage->w / gfx.field[i].w) * gfx.block.x,
|
|
|
|
tmpimage1 = scale_image (tmpimage, gfx.field[i].w * (tmpimage->w / GFX_IMGSIZE), gfx.field[i].frames * gfx.field[i].h);
|
|
|
|
gfx.field[i].frames * gfx.field[i].h);
|
|
|
|
|
|
|
|
if (i == FT_nothing || i == FT_block || i == FT_stone)
|
|
|
|
if (i == FT_nothing || i == FT_block || i == FT_stone)
|
|
|
|
r = g = b = 255;
|
|
|
|
r = g = b = 255;
|
|
|
|
else
|
|
|
|
else
|
|
|
|