summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-04 16:09:16 +0000
committerrubidium <rubidium@openttd.org>2009-02-04 16:09:16 +0000
commit09fca459a7acd7c1b1e14712678a977d30a13297 (patch)
tree9e8fdb91ff99e8b4da81a383159882a8ff57b155 /src/road_cmd.cpp
parent496b541cb1eb64405ad6e89a322530e8875e183d (diff)
downloadopenttd-09fca459a7acd7c1b1e14712678a977d30a13297.tar.xz
(svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r--src/road_cmd.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 44079d4a4..de2094a32 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -45,30 +45,6 @@ bool RoadVehiclesAreBuilt()
return false;
}
-/**
- * Change the side of the road vehicles drive on (server only).
- * @param tile unused
- * @param flags operation to perform
- * @param p1 the side of the road; 0 = left side and 1 = right side
- * @param p2 unused
- */
-CommandCost CmdSetRoadDriveSide(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text)
-{
- /* Check boundaries and you can only change this if NO vehicles have been built yet,
- * except in the intro-menu where of course it's always possible to do so. */
- if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR;
-
- if (flags & DC_EXEC) {
- if (_game_mode == GM_MENU) {
- _settings_newgame.vehicle.road_side = p1;
- } else {
- _settings_game.vehicle.road_side = p1;
- }
- InvalidateWindow(WC_GAME_OPTIONS, 0);
- }
- return CommandCost();
-}
-
#define M(x) (1 << (x))
/* Level crossings may only be built on these slopes */
static const uint32 VALID_LEVEL_CROSSING_SLOPES = (M(SLOPE_SEN) | M(SLOPE_ENW) | M(SLOPE_NWS) | M(SLOPE_NS) | M(SLOPE_WSE) | M(SLOPE_EW) | M(SLOPE_FLAT));