mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-19 18:35:48 +01:00
(svn r5119) -Fix: If a road vehicle is on a road depot tile and stopped doesn't mean it's in the depot. Use the proper test for this
This commit is contained in:
parent
eeeb8172e8
commit
b0801e4e63
@ -330,7 +330,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e)
|
|||||||
Vehicle *v;
|
Vehicle *v;
|
||||||
uint32 h;
|
uint32 h;
|
||||||
v = GetVehicle(w->window_number);
|
v = GetVehicle(w->window_number);
|
||||||
h = IsTileDepotType(v->tile, TRANSPORT_ROAD) && (v->vehstatus&VS_STOPPED) ? (1<< 7) : (1 << 11);
|
h = IsRoadVehInDepotStopped(v) ? 1 << 7 : 1 << 11;
|
||||||
if (h != w->hidden_state) {
|
if (h != w->hidden_state) {
|
||||||
w->hidden_state = h;
|
w->hidden_state = h;
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
|
Loading…
Reference in New Issue
Block a user