summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autoenergy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/auto/autoenergy.cpp')
-rw-r--r--src/object/auto/autoenergy.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/object/auto/autoenergy.cpp b/src/object/auto/autoenergy.cpp
index 6a8672b..a38caf2 100644
--- a/src/object/auto/autoenergy.cpp
+++ b/src/object/auto/autoenergy.cpp
@@ -29,7 +29,6 @@
#include "ui/interface.h"
#include "ui/gauge.h"
#include "ui/window.h"
-#include "ui/displaytext.h"
#include <stdio.h>
#include <string.h>
@@ -325,7 +324,7 @@ bool CAutoEnergy::EventProcess(const Event &event)
fret->SetPosition(0, Math::Vector(0.0f, 3.0f, 0.0f));
m_object->SetPower(fret);
- m_displayText->DisplayError(INFO_ENERGY, m_object);
+ m_main->DisplayError(INFO_ENERGY, m_object);
}
SetBusy(false);
@@ -468,7 +467,7 @@ void CAutoEnergy::CreatePower()
if ( !power->CreateResource(pos, angle, OBJECT_POWER) )
{
delete power;
- m_displayText->DisplayError(ERR_TOOMANY, m_object);
+ m_main->DisplayError(ERR_TOOMANY, m_object);
return;
}
power->SetLock(true); // battery not yet usable