From dd152510afece30ca90d7154dd65a53e84a69942 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 23 Apr 2018 23:55:33 +0200 Subject: LILLIPUT: Remove some unused variables, initialize some others --- engines/lilliput/lilliput.cpp | 11 +++++++++++ engines/lilliput/lilliput.h | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp index cc5247592d..88bea2ab71 100644 --- a/engines/lilliput/lilliput.cpp +++ b/engines/lilliput/lilliput.cpp @@ -243,6 +243,17 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd) for (int i = 0; i < 20; ++i) _keyboardMapping[i] = Common::KEYCODE_DOLLAR; + _mainSurface = nullptr; + _smallAnimsFrameIndex = 0; + _keyDelay = 0; + _int8Timer = 0; + _keyboard_nextIndex = 0; + _keyboard_oldIndex = 0; + _normalCursor = nullptr; + _greenCursor = nullptr; + _word10800_ERULES = 0; + _currentDisplayCharacter = 0; + _shouldQuit = false; _eventMan = nullptr; _lastTime = 0; diff --git a/engines/lilliput/lilliput.h b/engines/lilliput/lilliput.h index ac33a0f613..cb4e43c3da 100644 --- a/engines/lilliput/lilliput.h +++ b/engines/lilliput/lilliput.h @@ -116,9 +116,6 @@ public: byte _keyboard_oldIndex; Common::Event _keyboard_buffer[8]; byte _byte12A05; - byte _byte12A06; - byte _byte12A07; - byte _byte12A08; bool _refreshScreenFlag; byte _byte16552; int8 _lastInterfaceHotspotIndex; -- cgit v1.2.3