diff options
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index 9bb7d020f..c488c1671 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -215,9 +215,11 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) case WE_PAINT: { const Vehicle *v = GetVehicle(w->window_number); StringID str; + bool is_localplayer = v->owner == _local_player; - SetWindowWidgetDisabledState(w, 7, v->owner != _local_player); - SetWindowWidgetDisabledState(w, 8, !IsAircraftInHangarStopped(v) || v->owner != _local_player); + SetWindowWidgetDisabledState(w, 7, !is_localplayer); + SetWindowWidgetDisabledState(w, 8, !IsAircraftInHangarStopped(v) || !is_localplayer); + SetWindowWidgetDisabledState(w, 11, !is_localplayer); /* draw widgets & caption */ |