From 3ca7ed1c2e5f46b20828fc41676bc60e1ee4b3e8 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 8 Aug 2011 19:30:24 +0000 Subject: [PATCH] don't crash wall alignment with void-tiled walls git-svn-id: https://svn.eduke32.com/eduke32@1958 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index bad5bb9fa..0c748549c 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -9321,6 +9321,9 @@ static void AlignWalls(int32_t w0, int32_t z0, int32_t w1, int32_t z1, int32_t t { int32_t n; + if (tilesizx[tilenum]==0 || tilesizy[tilenum]==0) + return; + //do the x alignment wall[w1].xpanning = (uint8_t)((wall[w0].xpanning + (wall[w0].xrepeat<<3))%tilesizx[tilenum]);