From 15320a37b9255f28b5e66404b33e6fb0f1f05e9e Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 4 May 2018 21:40:59 +0100 Subject: Change: OnGameTick() is only called when not paused. --- src/graph_gui.cpp | 2 -- src/group_gui.cpp | 1 - src/industry_gui.cpp | 1 - src/station_gui.cpp | 1 - src/vehicle_gui.cpp | 1 - 5 files changed, 6 deletions(-) (limited to 'src') diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 4f8fe6870..bbf1c22d6 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1474,8 +1474,6 @@ struct PerformanceRatingDetailWindow : Window { virtual void OnGameTick() { - if (_pause_mode != PM_UNPAUSED) return; - /* Update the company score every 5 days */ if (--this->timeout == 0) { this->UpdateCompanyStats(); diff --git a/src/group_gui.cpp b/src/group_gui.cpp index dbb1baa0f..7db04e9b3 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -860,7 +860,6 @@ public: virtual void OnGameTick() { - if (_pause_mode != PM_UNPAUSED) return; if (this->groups.NeedResort() || this->vehicles.NeedResort()) { this->SetDirty(); } diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 50ef28359..05cc67ee2 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -649,7 +649,6 @@ public: virtual void OnGameTick() { - if (_pause_mode != PM_UNPAUSED) return; if (!this->timer_enabled) return; if (--this->callback_timer == 0) { /* We have just passed another day. diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 4c0bf295c..11af2f55f 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -623,7 +623,6 @@ public: virtual void OnGameTick() { - if (_pause_mode != PM_UNPAUSED) return; if (this->stations.NeedResort()) { DEBUG(misc, 3, "Periodic rebuild station list company %d", this->window_number); this->SetDirty(); diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 7e0fa14b6..450b0cc2d 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1678,7 +1678,6 @@ public: virtual void OnGameTick() { - if (_pause_mode != PM_UNPAUSED) return; if (this->vehicles.NeedResort()) { StationID station = (this->vli.type == VL_STATION_LIST) ? this->vli.index : INVALID_STATION; -- cgit v1.2.3-70-g09d2