summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-07-07 15:39:46 +0000
committerfrosch <frosch@openttd.org>2012-07-07 15:39:46 +0000
commit08a8c3a773e9c730bd92a39e1e07403a172e866a (patch)
tree5fea4034f5d65bf6be9c28458ce05369d702a78d /src/script/api
parent8d004f3c63fbff4f3524f770483db90408a98c50 (diff)
downloadopenttd-08a8c3a773e9c730bd92a39e1e07403a172e866a.tar.xz
(svn r24384) -Fix [FS#5188-ish]: Make IsInDepot() functions behave consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked.
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_vehicle.cpp b/src/script/api/script_vehicle.cpp
index c4c6ca590..639b42f4b 100644
--- a/src/script/api/script_vehicle.cpp
+++ b/src/script/api/script_vehicle.cpp
@@ -182,7 +182,7 @@
/* static */ bool ScriptVehicle::IsInDepot(VehicleID vehicle_id)
{
if (!IsValidVehicle(vehicle_id)) return false;
- return ::Vehicle::Get(vehicle_id)->IsInDepot();
+ return ::Vehicle::Get(vehicle_id)->IsChainInDepot();
}
/* static */ bool ScriptVehicle::IsStoppedInDepot(VehicleID vehicle_id)