mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r20292) -Codechange: remove some unused variables from AIConfigWindow
This commit is contained in:
parent
ee01ec9136
commit
6bfe29308c
@ -507,14 +507,9 @@ static const WindowDesc _ai_config_desc(
|
|||||||
*/
|
*/
|
||||||
struct AIConfigWindow : public Window {
|
struct AIConfigWindow : public Window {
|
||||||
CompanyID selected_slot;
|
CompanyID selected_slot;
|
||||||
bool clicked_button;
|
|
||||||
bool clicked_increase;
|
|
||||||
int timeout;
|
|
||||||
int line_height;
|
int line_height;
|
||||||
|
|
||||||
AIConfigWindow() : Window(),
|
AIConfigWindow() : Window()
|
||||||
clicked_button(false),
|
|
||||||
timeout(0)
|
|
||||||
{
|
{
|
||||||
this->InitNested(&_ai_config_desc); // Initializes 'this->line_height' as a side effect.
|
this->InitNested(&_ai_config_desc); // Initializes 'this->line_height' as a side effect.
|
||||||
this->selected_slot = INVALID_COMPANY;
|
this->selected_slot = INVALID_COMPANY;
|
||||||
@ -658,14 +653,6 @@ struct AIConfigWindow : public Window {
|
|||||||
this->SetWidgetDisabledState(AIC_WIDGET_MOVE_UP, this->selected_slot == INVALID_COMPANY || this->selected_slot == 1);
|
this->SetWidgetDisabledState(AIC_WIDGET_MOVE_UP, this->selected_slot == INVALID_COMPANY || this->selected_slot == 1);
|
||||||
this->SetWidgetDisabledState(AIC_WIDGET_MOVE_DOWN, this->selected_slot == INVALID_COMPANY || this->selected_slot == _settings_newgame.difficulty.max_no_competitors);
|
this->SetWidgetDisabledState(AIC_WIDGET_MOVE_DOWN, this->selected_slot == INVALID_COMPANY || this->selected_slot == _settings_newgame.difficulty.max_no_competitors);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnTick()
|
|
||||||
{
|
|
||||||
if (--this->timeout == 0) {
|
|
||||||
this->clicked_button = false;
|
|
||||||
this->SetDirty();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void ShowAIConfigWindow()
|
void ShowAIConfigWindow()
|
||||||
|
Loading…
Reference in New Issue
Block a user