aboutsummaryrefslogtreecommitdiff
path: root/saga/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/interface.cpp')
-rw-r--r--saga/interface.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp
index 3e6efc11e6..77fa34b6fe 100644
--- a/saga/interface.cpp
+++ b/saga/interface.cpp
@@ -238,7 +238,7 @@ Interface::Interface(SagaEngine *vm) : _vm(vm), _initialized(false) {
_activeVerb = I_VERB_WALKTO;
_active = 0;
- _panelMode = kPanelNone;
+ _panelMode = _savedMode = kPanelNull;
*_statusText = 0;
_inventoryCount = 0;
@@ -331,7 +331,7 @@ int Interface::draw() {
drawStatusBar(back_buf);
// Draw command panel background
- if (_panelMode == kPanelCommand) {
+ if (_panelMode == kPanelMain) {
xbase = _cPanel.x;
ybase = _cPanel.y;
@@ -357,7 +357,7 @@ int Interface::draw() {
_vm->_sprite->draw(back_buf, _defPortraits, _leftPortrait, lportrait, 256);
- if (_panelMode == kPanelDialogue && _iDesc.rportrait_x >= 0) {
+ if (_panelMode == kPanelConverse && _iDesc.rportrait_x >= 0) {
rportrait.x = xbase + _iDesc.rportrait_x;
rportrait.y = ybase + _iDesc.rportrait_y;
@@ -388,7 +388,7 @@ int Interface::update(const Point& imousePt, int update_flag) {
// Get game display info
_vm->getDisplayInfo(&g_di);
- if (_panelMode == kPanelCommand) {
+ if (_panelMode == kPanelMain) {
// Update playfield space ( only if cursor is inside )
if (imouse_y < g_di.scene_h) {
// Mouse is in playfield space
@@ -691,7 +691,7 @@ void Interface::removeFromInventory(int sprite) {
}
void Interface::drawInventory() {
- if (_panelMode != kPanelCommand)
+ if (_panelMode != kPanelMain)
return;
SURFACE *back_buf = _vm->_gfx->getBackBuffer();