diff 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
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1245,7 +1245,7 @@
 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
 	}
 
-	return CommandCost(_price.build_rail / 2);
+	return CommandCost(RailBuildCost(totype) / 2);
 }
 
 /**