Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
Paste #pcgnsbddr
Wrap
Raw
Revise
bool
gs_slot
=
this
-
>
selected_slot
==
OWNER_DEITY
;
bool
dead_ai_slot
=
IsEditable
(
(
CompanyID
)
(
this
-
>
selected_slot
)
)
&&
Company
::
IsValidAiID
(
this
-
>
selected_slot
)
&&
!
Company
::
Get
(
this
-
>
selected_slot
)
-
>
ai_instance
-
>
IsDead
(
)
;
this
-
>
SetWidgetDisabledState
(
WID_AIC_CHANGE, _game_mode
==
GM_NORMAL
&&
(
gs_slot
||
dead_ai_slot
)
||
this
-
>
selected_slot
==
INVALID_COMPANY
)
;
Version history
Revision #
Author
Created at
pytpi3bkw
Anonymous
10 Apr 2016, 15:05:01 UTC
Diff
Comments