diff --git a/src/tileset.c b/src/tileset.c index d2b8f56..43e516b 100644 --- a/src/tileset.c +++ b/src/tileset.c @@ -1,4 +1,4 @@ -/* $Id: tileset.c,v 1.5 2003/07/24 04:18:43 stpohle Exp $ */ +/* $Id: tileset.c,v 1.6 2003/08/06 22:23:42 stpohle Exp $ */ /* load and select tilesets */ #include "bomberclone.h" @@ -55,7 +55,14 @@ tileset_load (char *tilesetname) /* Calculate the Best Size of the Images */ gfx.block.x = gfx.res.x / (map.size.x + 1); - gfx.block.y = (gfx.res.y - 80) / (map.size.y + 1); + if (GT_MP_PTP && gfx.res.y == 480) + gfx.block.y = (gfx.res.y - 120) / (map.size.y + 1); + else if (GT_MP_PTP && gfx.res.y == 600) + gfx.block.y = (gfx.res.y - 140) / (map.size.y + 1); + else if (GT_MP_PTP && gfx.res.y > 600) + gfx.block.y = (gfx.res.y - 160) / (map.size.y + 1); + else + gfx.block.y = (gfx.res.y - 48) / (map.size.y + 1); if (gfx.block.x < gfx.block.y) gfx.block.y = gfx.block.x; else