From 03fd5c2ebe2f5fa07adb6fba501f42717b4b9b1a Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 23 Aug 2022 20:33:55 +1000 Subject: [PATCH] - Repair frame timer in `tileAnimateOfs()` following consolidation in 4f2170655c581aa36f1e7ccebba591a1260f4008. * All games that aren't Blood depend on Build's original 120Hz timer for this, not the playsim's clock. --- source/core/textures/buildtiles.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/core/textures/buildtiles.cpp b/source/core/textures/buildtiles.cpp index 8206f7872..a9a93a7b5 100644 --- a/source/core/textures/buildtiles.cpp +++ b/source/core/textures/buildtiles.cpp @@ -42,6 +42,7 @@ #include "m_crc32.h" #include "build.h" #include "gamecontrol.h" +#include "gamefuncs.h" #include "palettecontainer.h" #include "texturemanager.h" #include "c_dispatch.h" @@ -811,7 +812,7 @@ int tileAnimateOfs(int tilenum, int randomize) int framecount = picanm[tilenum].num; if (framecount > 0) { - int frametime = PlayClock; + int frametime = !isBlood() ? I_GetBuildTime() : PlayClock; if (isBlood() && randomize) {