From b460401ab669f54af914c81e4993bcc8084f7648 Mon Sep 17 00:00:00 2001 From: spacek531 Date: Sun, 2 Jul 2017 04:08:44 -0700 Subject: [PATCH] Removed redundant Ceil --- src/openrct2/core/Math.hpp | 6 ------ src/openrct2/title/TitleSequencePlayer.cpp | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/openrct2/core/Math.hpp b/src/openrct2/core/Math.hpp index 283ded1f75..c46a1ba94a 100644 --- a/src/openrct2/core/Math.hpp +++ b/src/openrct2/core/Math.hpp @@ -48,11 +48,5 @@ namespace Math if (x > 0) return 1; return 0; } - - template - static T Ceil(T a) - { - return (std::ceil)(a); - } } diff --git a/src/openrct2/title/TitleSequencePlayer.cpp b/src/openrct2/title/TitleSequencePlayer.cpp index de31c59151..2abf9a8180 100644 --- a/src/openrct2/title/TitleSequencePlayer.cpp +++ b/src/openrct2/title/TitleSequencePlayer.cpp @@ -249,7 +249,7 @@ private: case TITLE_SCRIPT_WAIT: // The waitCounter is measured in 25-ms game ticks. Previously it was seconds * 40 ticks/second, now it is ms / 25 ms/tick - _waitCounter = Math::Min(1, Math::Ceil(command->Seconds / UPDATE_TIME_MS)); + _waitCounter = Math::Min(1, command->Seconds / UPDATE_TIME_MS); break; case TITLE_SCRIPT_LOADMM: {