aboutsummaryrefslogtreecommitdiff
path: root/engines/lilliput/lilliput.cpp
diff options
context:
space:
mode:
authorStrangerke2018-03-29 07:10:23 +0200
committerStrangerke2018-03-29 07:11:42 +0200
commit411e182044381d44378d49ef2f796c0246bf31fe (patch)
tree113ac1f512c167b74fb69ec92bc77ab765de435d /engines/lilliput/lilliput.cpp
parenta4fe03c0a53ad89960f4934ea677ff0a7c0bc1f7 (diff)
downloadscummvm-rg350-411e182044381d44378d49ef2f796c0246bf31fe.tar.gz
scummvm-rg350-411e182044381d44378d49ef2f796c0246bf31fe.tar.bz2
scummvm-rg350-411e182044381d44378d49ef2f796c0246bf31fe.zip
LILLIPUT: Remove some useless code
Diffstat (limited to 'engines/lilliput/lilliput.cpp')
-rw-r--r--engines/lilliput/lilliput.cpp39
1 files changed, 9 insertions, 30 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp
index 9daa71fff7..24cda34763 100644
--- a/engines/lilliput/lilliput.cpp
+++ b/engines/lilliput/lilliput.cpp
@@ -117,7 +117,6 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
_console = new LilliputConsole(this);
_rnd = 0;
- _int8installed = false;
_mousePos = Common::Point(0, 0);
_oldMousePos = Common::Point(0, 0);
_mouseDisplayPos = Common::Point(0, 0);
@@ -141,9 +140,6 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
_nextDisplayCharacterPos = Common::Point(0, 0);
_animationTick = 0;
_byte12A05 = 10; // Used to trigger sound and animations in int8, 1 time out of 10
- _byte12A06 = 2; // Used to switch _byte12A07 between true and false, 1 time our of 3
- _byte12A07 = 0; // Set but never used
- _byte12A08 = 0; // Used to avoid two executions of int8 at the same time. Useless in ScummVM
_refreshScreenFlag = false;
_byte16552 = 0;
_lastInterfaceHotspotIndex = -1;
@@ -262,33 +258,18 @@ void LilliputEngine::update() {
}
void LilliputEngine::newInt8() {
- if (_byte12A06 == 0) {
- _byte12A06 = 2;
- _byte12A07 ^= 1;
- }
- --_byte12A06;
- // TODO: check 'out 20h, 20h'
-
- if (!_int8installed)
- return;
-
- // if (_soundEnabled)
_soundHandler->contentFct1();
- if (_byte12A08 != 1) {
- _byte12A08 = 1;
- if (_byte12A05 != 0)
- --_byte12A05;
- else {
- _byte12A05 = 10;
- if (_int8Timer != 0)
- --_int8Timer;
+ if (_byte12A05 != 0)
+ --_byte12A05;
+ else {
+ _byte12A05 = 10;
+ if (_int8Timer != 0)
+ --_int8Timer;
- _animationTick ^= 1;
- if (!_refreshScreenFlag)
- displayRefreshScreen();
- }
- _byte12A08 = 0;
+ _animationTick ^= 1;
+ if (!_refreshScreenFlag)
+ displayRefreshScreen();
}
}
@@ -2819,10 +2800,8 @@ Common::Error LilliputEngine::run() {
CursorMan.showMouse(true);
loadRules();
- _int8installed = true;
_lastTime = _system->getMillis();
-
_scriptHandler->runScript(ScriptStream(_initScript, _initScriptSize));
while (!_shouldQuit) {