1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Replace hardcoded frame number in plDTProgressMgr.

This was overlooked when the consolidation was done in 3027e0605c.
With this fix, the number of frames to be loaded is entirely defined
in a single place.  This also prepares the code for a future commit
to remove the necessity of the compile-time definition entirely.
This commit is contained in:
2013-12-20 08:11:49 -08:00
parent 09cc4b8259
commit 77266066ff
3 changed files with 7 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void plDTProgressMgr::Draw( plPipeline *p )
if ((currentMs - fLastDraw) > 30)
{
fCurrentImage++;
if (fCurrentImage >= 18)
if (fCurrentImage >= plProgressMgr::NumLoadingFrames())
fCurrentImage = 0;
fLastDraw = currentMs;