aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-20 21:59:08 +0200
committerThierry Crozat2018-01-23 01:33:25 +0000
commitb0c108ff60930a5b07f134528e058523f7acffba (patch)
treef8fd3c0f4a828ab9a24db8d3f9fbbb04a6ca0d70
parent29b7b91a5916b6adc11c813e95730a0feba26adb (diff)
downloadscummvm-rg350-b0c108ff60930a5b07f134528e058523f7acffba.tar.gz
scummvm-rg350-b0c108ff60930a5b07f134528e058523f7acffba.tar.bz2
scummvm-rg350-b0c108ff60930a5b07f134528e058523f7acffba.zip
SUPERNOVA: Adds ticks to msec conversion constant
-rw-r--r--engines/supernova/msn_def.h1
-rw-r--r--engines/supernova/state.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/supernova/msn_def.h b/engines/supernova/msn_def.h
index f38bbd2b80..7c596a2db4 100644
--- a/engines/supernova/msn_def.h
+++ b/engines/supernova/msn_def.h
@@ -28,6 +28,7 @@ namespace Supernova {
const int kScreenWidth = 320;
const int kScreenHeight = 200;
const int kTextSpeed[] = {19, 14, 10, 7, 4};
+const int kMsecPerTick = 55;
const int kMaxSection = 40;
const int kMaxSectionZus = 50;
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 6f5fe1daf0..4c28a06d76 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -221,10 +221,10 @@ void GameManager::initState() {
_timer1 = 0;
_animationTimer = 0;
- _state.time = 14200;
+ _state.time = 2840 * kMsecPerTick;
_state.timeSleep = 0;
- _state.timeStarting = 50400000;
- _state.timeAlarm = 25200000;
+ _state.timeStarting = 50400000; // 2 pm -- Originally: systime() - 917650
+ _state.timeAlarm = 25200000; // 7 am
_state.timeAlarmSystem = _state.timeAlarm + _state.timeStarting;
_state.eventTime = 0xffffffff;
_state.shipEnergy = 2135;