aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-03 20:44:27 +0000
committerMatthew Hoops2011-01-03 20:44:27 +0000
commit9074a2721105cc0d504296932481a54f5f03237d (patch)
treed886fd55b888482b5ac51f9ce93c1574b5af55a1
parent8a77f49a59fd9e4f1444072fe67f27c7a86d97b1 (diff)
downloadscummvm-rg350-9074a2721105cc0d504296932481a54f5f03237d.tar.gz
scummvm-rg350-9074a2721105cc0d504296932481a54f5f03237d.tar.bz2
scummvm-rg350-9074a2721105cc0d504296932481a54f5f03237d.zip
MOHAWK: Use integer math where floating point isn't required
svn-id: r55110
-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 d4d5a9169f..d37965900c 100644
--- a/engines/mohawk/myst_stacks/myst.cpp
+++ b/engines/mohawk/myst_stacks/myst.cpp
@@ -3073,7 +3073,7 @@ void MystScriptParser_Myst::observatoryUpdateVisualizer(uint16 x, uint16 y) {
}
void MystScriptParser_Myst::observatorySetTargetToSetting() {
- uint32 visuX = (uint16)(_state.observatoryTimeSetting * 0.28);
+ uint32 visuX = _state.observatoryTimeSetting * 7 / 25;
uint32 visuY = 250 * _state.observatoryYearSetting
+ 65 * (_state.observatoryMonthSetting + 1)
+ 20 * _state.observatoryDaySetting;