diff options
author | zuu <zuu@openttd.org> | 2013-02-10 19:49:04 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2013-02-10 19:49:04 +0000 |
commit | b1016f66ba199966d7f1487a51113329b0ca786d (patch) | |
tree | 107b2d05cb04ef41ba55f2fecf9daac0ce5ac205 /src/cargomonitor.h | |
parent | e27582d104c7bbcf987c5320edce94d84b6e59f7 (diff) | |
download | openttd-b1016f66ba199966d7f1487a51113329b0ca786d.tar.xz |
(svn r24986) -Change: Cleanup goals and cargo monitors of companies when they go bankrupt or are taken over.
Diffstat (limited to 'src/cargomonitor.h')
-rw-r--r-- | src/cargomonitor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargomonitor.h b/src/cargomonitor.h index 1c7123b77..ce9a8e5d6 100644 --- a/src/cargomonitor.h +++ b/src/cargomonitor.h @@ -139,8 +139,8 @@ static inline TownID DecodeMonitorTown(CargoMonitorID num) return GB(num, CCB_TOWN_IND_NUMBER_START, CCB_TOWN_IND_NUMBER_LENGTH); } -void ClearCargoPickupMonitoring(); -void ClearCargoDeliveryMonitoring(); +void ClearCargoPickupMonitoring(CompanyID company = INVALID_OWNER); +void ClearCargoDeliveryMonitoring(CompanyID company = INVALID_OWNER); uint32 GetDeliveryAmount(CargoMonitorID monitor, bool keep_monitoring); uint32 GetPickupAmount(CargoMonitorID monitor, bool keep_monitoring); void AddCargoDelivery(CargoID cargo_type, CompanyID company, uint32 amount, SourceType src_type, SourceID src, const Station *st); |