From 5fa621f0aa9130eb3ee46c009a1ec4318e09d5ea Mon Sep 17 00:00:00 2001 From: stpohle Date: Wed, 6 Aug 2003 22:23:42 +0000 Subject: [PATCH] blocksize will change depends if it's a single or a multiplayer game... single games don't need a chat window. Multiplayergames had a too smal chat window --- src/tileset.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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