mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- SW: got rid of MAXWALLS.
Only places left are declarations of global arrays.
This commit is contained in:
parent
b6579809ad
commit
25a6774540
10 changed files with 45 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue