diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 59f6b9edf..75dd93d97 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -447,7 +447,7 @@ int32_t animateoffs(int const tilenum, int fakevar) if (animnum <= 0) return 0; - int const i = (int) totalclocklock >> (picanm[tilenum].sf & PICANM_ANIMSPEED_MASK); + int const i = (int) I_GetBuildTime() >> (picanm[tilenum].sf & PICANM_ANIMSPEED_MASK); int offs = 0; switch (picanm[tilenum].sf & PICANM_ANIMTYPE_MASK)