src/ship_gui.cpp
branchnoai
changeset 9574 698395509d12
parent 6524 44e22a9b2c97
child 6987 b0f13039bda2
equal deleted inserted replaced
9573:fa56261c7142 9574:698395509d12
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file ship_gui.cpp */
     2 
     4 
     3 #include "stdafx.h"
     5 #include "stdafx.h"
     4 #include "openttd.h"
     6 #include "openttd.h"
     5 #include "debug.h"
     7 #include "debug.h"
     6 #include "functions.h"
     8 #include "functions.h"
    30 	case WE_PAINT: {
    32 	case WE_PAINT: {
    31 		const Vehicle *v = GetVehicle(w->window_number);
    33 		const Vehicle *v = GetVehicle(w->window_number);
    32 		StringID str;
    34 		StringID str;
    33 
    35 
    34 		SetWindowWidgetDisabledState(w, 2, v->owner != _local_player);
    36 		SetWindowWidgetDisabledState(w, 2, v->owner != _local_player);
    35 		// disable service-scroller when interval is set to disabled
    37 		/* disable service-scroller when interval is set to disabled */
    36 		SetWindowWidgetDisabledState(w, 5, !_patches.servint_ships);
    38 		SetWindowWidgetDisabledState(w, 5, !_patches.servint_ships);
    37 		SetWindowWidgetDisabledState(w, 6, !_patches.servint_ships);
    39 		SetWindowWidgetDisabledState(w, 6, !_patches.servint_ships);
    38 
    40 
    39 		SetDParam(0, v->string_id);
    41 		SetDParam(0, v->string_id);
    40 		SetDParam(1, v->unitnumber);
    42 		SetDParam(1, v->unitnumber);