mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-18 03:59:09 +00:00
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
This commit is contained in:
@@ -1248,7 +1248,7 @@ CommandCost CmdSellRailWagon(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
IsTrainEngine(v)) ? v->u.rail.other_multiheaded_part : NULL;
|
||||
|
||||
if (rear != NULL) {
|
||||
cost.AddCost(-(int64)rear->value);
|
||||
cost.AddCost(-rear->value);
|
||||
if (flags & DC_EXEC) {
|
||||
UnlinkWagon(rear, first);
|
||||
DeleteDepotHighlightOfVehicle(rear);
|
||||
|
Reference in New Issue
Block a user