mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
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:
parent
b6d729a553
commit
3ca7ed1c2e
1 changed files with 3 additions and 0 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue