summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-06 15:00:32 +0000
committerrubidium <rubidium@openttd.org>2007-08-06 15:00:32 +0000
commita7e37d8592d702b06679eba14a386dd779b61786 (patch)
tree409c30d990d2181b1e8f30f61c757ff454f331b4 /src
parentab7e36dda704a3ed47ceaf2abb903079d1bea3df (diff)
downloadopenttd-a7e37d8592d702b06679eba14a386dd779b61786.tar.xz
(svn r10814) -Fix [FS#1103]/Codechange: allow trams to be reverse manually, even though there is no track to do so.
Diffstat (limited to 'src')
-rw-r--r--src/roadveh_cmd.cpp1
-rw-r--r--src/roadveh_gui.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index c1e98d69c..796f86f76 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -533,7 +533,6 @@ CommandCost CmdTurnRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (v->type != VEH_ROAD || !CheckOwnership(v->owner)) return CMD_ERROR;
if (v->vehstatus & VS_STOPPED ||
- v->u.road.roadtype == ROADTYPE_TRAM ||
v->u.road.crashed_ctr != 0 ||
v->breakdown_ctr != 0 ||
v->u.road.overtaking != 0 ||
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index 33f29576d..0cfd98f35 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -277,7 +277,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e)
bool is_localplayer = v->owner == _local_player;
SetWindowWidgetDisabledState(w, 7, !is_localplayer);
- SetWindowWidgetDisabledState(w, 8, !is_localplayer || v->u.road.roadtype == ROADTYPE_TRAM);
+ SetWindowWidgetDisabledState(w, 8, !is_localplayer);
SetWindowWidgetDisabledState(w, 11, !is_localplayer);
/* Disable refit button if vehicle not refittable */
SetWindowWidgetDisabledState(w, 12, !is_localplayer ||