Import vehicle repair costs patch

Strip trailing whitespace

http://www.tt-forums.net/viewtopic.php?p=1093268#p1093268
This commit is contained in:
patch-import
2015-08-04 23:38:31 +01:00
committed by Jonathan G Rennison
parent 224dcab437
commit 7537ae2a7e
11 changed files with 90 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ CommandCost CmdBuildVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
if (value.Succeeded() && flags & DC_EXEC) {
v->unitnumber = unit_num;
v->value = value.GetCost();
v->repair_cost = value.GetCost();
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
InvalidateWindowClassesData(GetWindowClassForVehicleType(type), 0);