From 5fdff2824c7cf45edb0dc2fb6f0bdbe150e3a20f Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Wed, 17 Dec 2003 07:33:00 +0000 Subject: fixed text output and logic bug. changed scrolling code. hey, sword is running really nice already. :) svn-id: r11703 --- sword1/mouse.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'sword1/mouse.cpp') diff --git a/sword1/mouse.cpp b/sword1/mouse.cpp index 6b243bd5b8..895edc5e33 100644 --- a/sword1/mouse.cpp +++ b/sword1/mouse.cpp @@ -110,13 +110,18 @@ void SwordMouse::engine(uint16 x, uint16 y, uint16 eventFlags) { _numObjs = 0; return; // no human, so we don't want the mouse engine } - - if (y < 40) { // okay, we are in the top menu. - if (!_inTopMenu) // are we just entering it? - _menu->fnStartMenu(); - _menu->checkTopMenu(); - _inTopMenu = true; - } else if (_inTopMenu) { // we're not in the menu. did we just leave it? + + if (!SwordLogic::_scriptVars[TOP_MENU_DISABLED]) { + if (y < 40) { // okay, we are in the top menu. + if (!_inTopMenu) // are we just entering it? + _menu->fnStartMenu(); + _menu->checkTopMenu(); + _inTopMenu = true; + } else if (_inTopMenu) { // we're not in the menu. did we just leave it? + _menu->fnEndMenu(); + _inTopMenu = false; + } + } else if (_inTopMenu) { _menu->fnEndMenu(); _inTopMenu = false; } -- cgit v1.2.3