mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r10814) -Fix [FS#1103]/Codechange: allow trams to be reverse manually, even though there is no track to do so.
This commit is contained in:
parent
ab7e36dda7
commit
a7e37d8592
@ -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 ||
|
||||
|
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user