From a983a94ee5ffbaccfc420940f6b9989edfc50ade Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 6 Feb 2019 18:08:49 +0000 Subject: [PATCH] Update vehicle window depot/refit button states at build and when paused --- src/vehicle_gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 1cc024915c..199c4e4ecf 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -3579,6 +3579,11 @@ public: } } + virtual void OnRealtimeTick(uint delta_ms) + { + if (_pause_mode != PM_UNPAUSED) this->OnGameTick(); + } + /** * Some data on this window has become invalid. * @param data Information about the changed data.