mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 16:09:10 +00:00
(svn r2781) Fix some of the issues with variables in .h files.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user