aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/touche/touche.cpp10
-rw-r--r--engines/touche/touche.h3
2 files changed, 7 insertions, 6 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index 39cd522685..31e28bf1d1 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -138,7 +138,7 @@ void ToucheEngine::restart() {
_currentEpisodeNum = 0;
_newEpisodeNum = ConfMan.getInt("boot_param");
if (_newEpisodeNum == 0) {
- _newEpisodeNum = 90;
+ _newEpisodeNum = kStartupEpisode;
}
_newMusicNum = 0;
@@ -232,10 +232,6 @@ void ToucheEngine::writeConfigurationSettings() {
void ToucheEngine::mainLoop() {
restart();
- _inp_leftMouseButtonPressed = false;
- _inp_rightMouseButtonPressed = false;
- showCursor(false);
-
setPalette(0, 255, 0, 0, 0);
readConfigurationSettings();
@@ -245,6 +241,10 @@ void ToucheEngine::mainLoop() {
_newEpisodeNum = _currentEpisodeNum;
}
+ _inp_leftMouseButtonPressed = false;
+ _inp_rightMouseButtonPressed = false;
+ showCursor(_newEpisodeNum != kStartupEpisode);
+
const int cycleDelay = 1000 / (1193180 / 32768);
uint32 frameTimeStamp = _system->getMillis();
_sleepCycles = 0;
diff --git a/engines/touche/touche.h b/engines/touche/touche.h
index 387cb2ed1b..7199cfaab5 100644
--- a/engines/touche/touche.h
+++ b/engines/touche/touche.h
@@ -316,7 +316,8 @@ enum InventoryArea {
enum {
kScreenWidth = 640,
kScreenHeight = 400,
- kRoomHeight = 352
+ kRoomHeight = 352,
+ kStartupEpisode = 90
};
class MidiPlayer;