Fix 3D model animation depending on the number of sprites present on the map.

Fixes terminx/eduke32#64.
This commit is contained in:
Dino Bollinger 2020-06-08 12:47:09 -07:00 committed by Christoph Oelckers
parent 28911435d9
commit 9c2c1cc765

View file

@ -4045,7 +4045,7 @@ void videoNextPage(void)
omdtims = mdtims;
mdtims = timerGetTicks();
for (native_t i = 0; i < Numsprites; ++i)
for (native_t i = 0; i < MAXSPRITES + MAXUNIQHUDID; ++i)
if ((mdpause && spriteext[i].mdanimtims) || (spriteext[i].flags & SPREXT_NOMDANIM))
spriteext[i].mdanimtims += mdtims - omdtims;
#endif