aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-25 15:29:05 +0200
committerThierry Crozat2018-01-23 01:47:01 +0000
commit3284fbc657700bd557d8f8023f9e6cc8bb173812 (patch)
tree6b4dea60ded5b8e8908e0c6910d24d3a3cc926bf
parentccbc1142e1c44d3d4e16caac7d8c9f2c89782f9d (diff)
downloadscummvm-rg350-3284fbc657700bd557d8f8023f9e6cc8bb173812.tar.gz
scummvm-rg350-3284fbc657700bd557d8f8023f9e6cc8bb173812.tar.bz2
scummvm-rg350-3284fbc657700bd557d8f8023f9e6cc8bb173812.zip
SUPERNOVA: Fixes cockpit display
Cruising speed and distance were inaccurate.
-rw-r--r--engines/supernova/rooms.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index 1c599a3538..65a4f17cfd 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -310,11 +310,11 @@ bool ShipCockpit::interact(Action verb, Object &obj1, Object &obj2) {
_vm->renderText("0 hpm");
_vm->renderText("Ziel: Arsano 3", 50, 70, kColorLightYellow);
_vm->renderText("Entfernung: ", 50, 90, kColorLightYellow);
- _vm->renderText(Common::String::format("%d", _gm->_state._arrivalDaysLeft / ticksToMsec(400)).c_str());
+ _vm->renderText(Common::String::format("%d", _gm->_state._arrivalDaysLeft / 400).c_str());
_vm->renderText(",");
- c[0] = (_gm->_state._arrivalDaysLeft / ticksToMsec(40)) % 10 + '0';
+ c[0] = (_gm->_state._arrivalDaysLeft / 40) % 10 + '0';
_vm->renderText(c);
- c[0] = (_gm->_state._arrivalDaysLeft / ticksToMsec(4)) % 10 + '0';
+ c[0] = (_gm->_state._arrivalDaysLeft / 4) % 10 + '0';
_vm->renderText(c);
_vm->renderText(" Lichtjahre");
_vm->renderText("Dauer der Reise bei momentaner Geschwindigkeit:", 50, 110, kColorLightYellow);