aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/avalanche/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp
index 5d8e50c147..98deefae4e 100644
--- a/engines/avalanche/parser.cpp
+++ b/engines/avalanche/parser.cpp
@@ -534,7 +534,7 @@ Common::String Parser::rank() {
Common::String Parser::totalTime() {
uint16 h, m, s;
- h = (uint16) _vm->_totalTime / 65535 / 3600;
+ h = (uint16)((_vm->_totalTime * 3600) / 65535);
m = h % 3600;
h /= 3600;
s = m % 60;