aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/avalanche/parser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp
index 05d402617d..5d8e50c147 100644
--- a/engines/avalanche/parser.cpp
+++ b/engines/avalanche/parser.cpp
@@ -532,11 +532,9 @@ Common::String Parser::rank() {
}
Common::String Parser::totalTime() {
- // There are 65535 clock ticks in a second, 1092.25 in a minute, and 65535 in an hour.
- const float ticksInOneSec = (float)(65535) / 3600;
uint16 h, m, s;
- h = (uint16)floor(_vm->_totalTime / ticksInOneSec); // No. of seconds.
+ h = (uint16) _vm->_totalTime / 65535 / 3600;
m = h % 3600;
h /= 3600;
s = m % 60;