diff options
author | ludde <ludde@openttd.org> | 2005-08-01 16:31:19 +0000 |
---|---|---|
committer | ludde <ludde@openttd.org> | 2005-08-01 16:31:19 +0000 |
commit | 29564f9fcfc6e2dffb7afa196dbcabb04c99bee7 (patch) | |
tree | dc182cc3e9eea6a1776b7fdc84014ec094051275 /train_cmd.c | |
parent | 91353c841f3adde7f601ab4185e3486a034dbd04 (diff) | |
download | openttd-29564f9fcfc6e2dffb7afa196dbcabb04c99bee7.tar.xz |
(svn r2781) Fix some of the issues with variables in .h files.
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(); |