- SW: got rid of MAXWALLS.

Only places left are declarations of global arrays.
This commit is contained in:
Christoph Oelckers 2021-11-11 01:01:30 +01:00
parent b6579809ad
commit 25a6774540
10 changed files with 45 additions and 35 deletions

View file

@ -277,7 +277,7 @@ void DoRotatorSetInterp(short SpriteNum)
StartInterpolation(w, Interp_Wall_Y);
uint16_t const nextwall = wall[w].nextwall;
if (nextwall < MAXWALLS)
if (validWallIndex(nextwall))
{
StartInterpolation(wall[nextwall].point2, Interp_Wall_X);
StartInterpolation(wall[nextwall].point2, Interp_Wall_Y);
@ -300,7 +300,7 @@ void DoRotatorStopInterp(short SpriteNum)
StopInterpolation(w, Interp_Wall_Y);
uint16_t const nextwall = wall[w].nextwall;
if (nextwall < MAXWALLS)
if (validWallIndex(nextwall))
{
StopInterpolation(wall[nextwall].point2, Interp_Wall_X);
StopInterpolation(wall[nextwall].point2, Interp_Wall_Y);