summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autotower.cpp
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-06-24 22:09:39 +0200
committererihel <erihel@gmail.com>2013-06-24 22:09:39 +0200
commit41fa8458c2e28f05a610bfc3119f86b8dc85542a (patch)
tree4a653c3f32cb0d524af2669d666fd8385b9a408f /src/object/auto/autotower.cpp
parent5c15855009aaab519718b80808d9e10eeda6b425 (diff)
downloadcolobot-41fa8458c2e28f05a610bfc3119f86b8dc85542a.tar.gz
colobot-41fa8458c2e28f05a610bfc3119f86b8dc85542a.tar.bz2
colobot-41fa8458c2e28f05a610bfc3119f86b8dc85542a.zip
Some Ui refactoring
Diffstat (limited to 'src/object/auto/autotower.cpp')
-rw-r--r--src/object/auto/autotower.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/object/auto/autotower.cpp b/src/object/auto/autotower.cpp
index 17a41f4..329cab0 100644
--- a/src/object/auto/autotower.cpp
+++ b/src/object/auto/autotower.cpp
@@ -27,7 +27,6 @@
#include "script/cmdtoken.h"
#include "ui/interface.h"
-#include "ui/displaytext.h"
#include "ui/window.h"
#include "ui/gauge.h"
@@ -179,7 +178,7 @@ bool CAutoTower::EventProcess(const Event &event)
target = SearchTarget(m_targetPos);
if ( energy < ENERGY_FIRE )
{
- m_displayText->DisplayError(ERR_TOWER_ENERGY, m_object);
+ m_main->DisplayError(ERR_TOWER_ENERGY, m_object);
}
if ( target == 0 || energy < ENERGY_FIRE )
{