From 22bb015f3d1f172227a74cb6d9d0bc96378f452a Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 24 Feb 2013 16:41:51 +0000 Subject: (svn r25041) -Remove [FS#3764-ish]: ordered refit with subtypes, since the cases where it worked were corner cases rather than the general case. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle.cpp') 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 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()) { -- cgit v1.2.3-54-g00ecf