aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--palisade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/palisade.c b/palisade.c
index 58619bf..fdd69cc 100644
--- a/palisade.c
+++ b/palisade.c
@@ -908,7 +908,7 @@ struct game_drawstate {
#define TILESIZE (ds->tilesize)
#define MARGIN (ds->tilesize / 2)
-#define WIDTH (1 + (TILESIZE >= 16) + (TILESIZE >= 32) + (TILESIZE >= 64))
+#define WIDTH (3*TILESIZE/32 > 1 ? 3*TILESIZE/32 : 1)
#define CENTER ((ds->tilesize / 2) + WIDTH/2)
#define FROMCOORD(x) (((x) - MARGIN) / TILESIZE)