don't crash wall alignment with void-tiled walls

git-svn-id: https://svn.eduke32.com/eduke32@1958 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-08-08 19:30:24 +00:00
parent b6d729a553
commit 3ca7ed1c2e

View file

@ -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; int32_t n;
if (tilesizx[tilenum]==0 || tilesizy[tilenum]==0)
return;
//do the x alignment //do the x alignment
wall[w1].xpanning = (uint8_t)((wall[w0].xpanning + (wall[w0].xrepeat<<3))%tilesizx[tilenum]); wall[w1].xpanning = (uint8_t)((wall[w0].xpanning + (wall[w0].xrepeat<<3))%tilesizx[tilenum]);