mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 16:54:42 +00:00
Change: OnGameTick() is only called when not paused.
This commit is contained in:
parent
2a8fa5fef9
commit
15320a37b9
@ -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();
|
||||
|
@ -860,7 +860,6 @@ public:
|
||||
|
||||
virtual void OnGameTick()
|
||||
{
|
||||
if (_pause_mode != PM_UNPAUSED) return;
|
||||
if (this->groups.NeedResort() || this->vehicles.NeedResort()) {
|
||||
this->SetDirty();
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user