diff options
author | frosch <frosch@openttd.org> | 2013-02-24 16:41:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-02-24 16:41:51 +0000 |
commit | 22bb015f3d1f172227a74cb6d9d0bc96378f452a (patch) | |
tree | a4172aa3b01136ea21375fcb88b70b72555dbbff /src/vehicle.cpp | |
parent | 205543f727b5a4e0084c1eceb433eac8fa0a327b (diff) | |
download | openttd-22bb015f3d1f172227a74cb6d9d0bc96378f452a.tar.xz |
(svn r25041) -Remove [FS#3764-ish]: ordered refit with subtypes, since the cases where it worked were corner cases rather than the general case.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 8a3b51750..b15d3c608 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1367,7 +1367,7 @@ void VehicleEnterDepot(Vehicle *v) if (t.IsRefit()) { Backup<CompanyByte> cur_company(_current_company, v->owner, FILE_LINE); - CommandCost cost = DoCommand(v->tile, v->index, t.GetRefitCargo() | t.GetRefitSubtype() << 8, DC_EXEC, GetCmdRefitVeh(v)); + CommandCost cost = DoCommand(v->tile, v->index, t.GetRefitCargo() | 0xFF << 8, DC_EXEC, GetCmdRefitVeh(v)); cur_company.Restore(); if (cost.Failed()) { |