summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-01 22:03:55 +0000
committeryexo <yexo@openttd.org>2010-08-01 22:03:55 +0000
commit6bfe29308cb144d39c95c622677056b5b63d422c (patch)
tree823346e668a40dec777dfe8d3bc4b1d36712a26a /src/ai
parentee01ec9136fa441ff07a535fd85b3fe43a633442 (diff)
downloadopenttd-6bfe29308cb144d39c95c622677056b5b63d422c.tar.xz
(svn r20292) -Codechange: remove some unused variables from AIConfigWindow
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 5a404b9d7..880050a75 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -507,14 +507,9 @@ static const WindowDesc _ai_config_desc(
*/
struct AIConfigWindow : public Window {
CompanyID selected_slot;
- bool clicked_button;
- bool clicked_increase;
- int timeout;
int line_height;
- AIConfigWindow() : Window(),
- clicked_button(false),
- timeout(0)
+ AIConfigWindow() : Window()
{
this->InitNested(&_ai_config_desc); // Initializes 'this->line_height' as a side effect.
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_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()