Change: OnGameTick() is only called when not paused.

This commit is contained in:
Peter Nelson 2018-05-04 21:40:59 +01:00 committed by PeterN
parent 2a8fa5fef9
commit 15320a37b9
5 changed files with 0 additions and 6 deletions

View File

@ -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();

View File

@ -860,7 +860,6 @@ public:
virtual void OnGameTick()
{
if (_pause_mode != PM_UNPAUSED) return;
if (this->groups.NeedResort() || this->vehicles.NeedResort()) {
this->SetDirty();
}

View File

@ -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.

View File

@ -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();

View File

@ -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;