From 9038c849ab4c966884abfd964268d9ceb1db0a93 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 15 Dec 2022 18:39:47 +0000 Subject: [PATCH] VarAction2: Use scaled tick counter for NewGRF variable 0x0A --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 14c5ee10e0..4f0502cd89 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -7210,7 +7210,7 @@ bool GetGlobalVariable(byte param, uint32 *value, const GRFFile *grffile) return true; case 0x0A: // animation counter - *value = GB(_tick_counter, 0, 16); + *value = GB(_scaled_tick_counter, 0, 16); return true; case 0x0B: { // TTDPatch version