diff options
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c index 6883293fe..1f8f28a6f 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -602,11 +602,11 @@ int32 CmdBuildRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (rvi->flags & RVI_WAGON) return CmdBuildRailWagon(p1, tile, flags); value = EstimateTrainCost(rvi); - + //make sure we only pay for half a dualheaded engine if we only requested half of it if (rvi->flags&RVI_MULTIHEAD && HASBIT(p2,0)) value /= 2; - + if (!(flags & DC_QUERY_COST)) { v = AllocateVehicle(); |