From 0f42dd4511ed4cc279acb075344fb62bc25300a9 Mon Sep 17 00:00:00 2001 From: uruk Date: Sun, 6 Oct 2013 00:03:49 +0200 Subject: AVALANCHE: Use floats instead of double. Use M_PI where it is possible. --- engines/avalanche/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/avalanche/parser.cpp') diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp index 28c3b3bdd1..05d402617d 100644 --- a/engines/avalanche/parser.cpp +++ b/engines/avalanche/parser.cpp @@ -533,7 +533,7 @@ 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 double ticksInOneSec = (double)(65535) / 3600; + const float ticksInOneSec = (float)(65535) / 3600; uint16 h, m, s; h = (uint16)floor(_vm->_totalTime / ticksInOneSec); // No. of seconds. -- cgit v1.2.3