summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-05-23 17:33:03 +0000
committermaedhros <maedhros@openttd.org>2007-05-23 17:33:03 +0000
commit39016328cc92a50fec27ccf692838c2c4c26088f (patch)
tree73a8ef6355c7f911d98b6c9474351d089241fe55 /src/rail_gui.cpp
parent22c33370719b30366223a605d3345fb5b2323454 (diff)
downloadopenttd-39016328cc92a50fec27ccf692838c2c4c26088f.tar.xz
(svn r9905) -Feature: Allow building new stations adjacent to existing stations by holding down control. Based on a patch by Wolf01.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 838eeda8c..999c6afd3 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -157,7 +157,7 @@ static void PlaceRail_Station(TileIndex tile)
VpSetPlaceSizingLimit(_patches.station_spread);
} else {
DoCommandP(tile,
- _railstation.orientation | (_railstation.numtracks << 8) | (_railstation.platlength << 16),
+ _railstation.orientation | (_railstation.numtracks << 8) | (_railstation.platlength << 16) | (_ctrl_pressed << 24),
_cur_railtype | (_railstation.station_class << 8) | (_railstation.station_type << 16), CcStation,
CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION));
}
@@ -665,7 +665,7 @@ static void HandleStationPlacement(TileIndex start, TileIndex end)
if (!_railstation.orientation) Swap(w, h);
DoCommandP(TileXY(sx, sy),
- _railstation.orientation | (w << 8) | (h << 16),
+ _railstation.orientation | (w << 8) | (h << 16) | (_ctrl_pressed << 24),
_cur_railtype | (_railstation.station_class << 8) | (_railstation.station_type << 16), CcStation,
CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION));
}