(svn r24986) -Change: Cleanup goals and cargo monitors of companies when they go bankrupt or are taken over.

This commit is contained in:
zuu
2013-02-10 19:49:04 +00:00
parent e27582d104
commit b1016f66ba
6 changed files with 60 additions and 9 deletions

View File

@@ -31,6 +31,9 @@
* \li GSController::Break
* \li GSIndustryType::BuildIndustry, GSIndustryType::CanBuildIndustry, GSIndustryType::ProspectIndustry and GSIndustryType::CanProspectIndustry when outside GSCompanyMode scope
*
* Other changes:
* \li Company specific goals are now removed when a company goes bankrupt or is taken over.
*
* \b 1.2.3
*
* No changes

View File

@@ -37,7 +37,8 @@
* The latter get added at the moment the cargo is delivered. This prevents users from getting credit for
* picking up cargo without delivering it.
*
* The active monitors are saved and loaded. You can reset to the empty state with #StopAllMonitoring.
* The active monitors are saved and loaded. Upon bankruptcy or company takeover, the cargo monitors are
* automatically stopped for that company. You can reset to the empty state with #StopAllMonitoring.
*
* @api game
*/

View File

@@ -17,6 +17,11 @@
/**
* Class that handles some goal related functions.
*
* Goals are saved and loaded. Upon bankruptcy or company takeover, all company
* specific goals are removed for that company. You can also remove individual
* goals using #Remove.
*
* @api game
*/
class ScriptGoal : public ScriptObject {