Add: Timeout counter for the goals. Addresses #7371

This commit is contained in:
Alberth
2014-12-30 19:29:55 +01:00
parent 3c9f2c8314
commit c5c7e3a939
3 changed files with 38 additions and 3 deletions

View File

@@ -325,6 +325,14 @@ function BusyBeeClass::Start()
new_goal_timeout -= delay_time;
monitor_timeout -= delay_time;
finished_timeout -= delay_time;
// Update timeout of the goals as well.
if (!GSGame.IsPaused()) {
foreach (cid, cdata in companies) {
if (cdata == null) continue;
cdata.UpdateTimeout(delay_time);
}
}
}
}