summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 10:30:10 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 10:30:10 +0000
commit1dc685aeea202f1677f915d390dc13ce3e18c462 (patch)
tree2cacacd88d133fa3bbbe11c706dcf21f841898d0 /src/station_cmd.cpp
parent0b6dbaf6645644be09d101b15806a13479610fda (diff)
downloadopenttd-1dc685aeea202f1677f915d390dc13ce3e18c462.tar.xz
(svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 6a5e557e2..8e57048e9 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3595,7 +3595,7 @@ static CommandCost TerraformTile_Station(TileIndex tile, DoCommandFlag flags, ui
/* TODO: If you implement newgrf callback 149 'land slope check', you have to decide what to do with it here.
* TTDP does not call it.
*/
- if (GetTileMaxPixelZ(tile) == z_new + GetSlopeMaxPixelZ(tileh_new)) {
+ if (GetTileMaxZ(tile) == z_new + GetSlopeMaxZ(tileh_new)) {
switch (GetStationType(tile)) {
case STATION_WAYPOINT:
case STATION_RAIL: {