aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/myst_stacks/myst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp
index 6a9c92549c..58354f7568 100644
--- a/engines/mohawk/myst_stacks/myst.cpp
+++ b/engines/mohawk/myst_stacks/myst.cpp
@@ -3090,7 +3090,7 @@ void MystScriptParser_Myst::observatoryUpdateVisualizer(uint16 x, uint16 y) {
}
void MystScriptParser_Myst::observatorySetTargetToSetting() {
- uint32 visuX = _state.observatoryTimeSetting * 0.28;
+ uint32 visuX = (uint16)(_state.observatoryTimeSetting * 0.28);
uint32 visuY = 250 * _state.observatoryYearSetting
+ 65 * (_state.observatoryMonthSetting + 1)
+ 20 * _state.observatoryDaySetting;