comparison src/station_cmd.cpp @ 7730:b2ca338938ed draft

(svn r11265) -Feature: Make more advanced rail types more expensive to build.
author maedhros <maedhros@openttd.org>
date Sun, 14 Oct 2007 21:20:12 +0000
parents 03747e97c53b
children 3387a53e113f
comparison
equal deleted inserted replaced
7729:0eeced3fd703 7730:b2ca338938ed
1243 MarkTileDirtyByTile(tile); 1243 MarkTileDirtyByTile(tile);
1244 YapfNotifyTrackLayoutChange(tile, GetRailStationTrack(tile)); 1244 YapfNotifyTrackLayoutChange(tile, GetRailStationTrack(tile));
1245 VehicleFromPos(tile, &tile, UpdateTrainPowerProc); 1245 VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
1246 } 1246 }
1247 1247
1248 return CommandCost(_price.build_rail / 2); 1248 return CommandCost(RailBuildCost(totype) / 2);
1249 } 1249 }
1250 1250
1251 /** 1251 /**
1252 * @param truck_station Determines whether a stop is RoadStop::BUS or RoadStop::TRUCK 1252 * @param truck_station Determines whether a stop is RoadStop::BUS or RoadStop::TRUCK
1253 * @param st The Station to do the whole procedure for 1253 * @param st The Station to do the whole procedure for