From 29564f9fcfc6e2dffb7afa196dbcabb04c99bee7 Mon Sep 17 00:00:00 2001 From: ludde Date: Mon, 1 Aug 2005 16:31:19 +0000 Subject: (svn r2781) Fix some of the issues with variables in .h files. --- train_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'train_cmd.c') 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(); -- cgit v1.2.3-54-g00ecf