Removed redundant Ceil

This commit is contained in:
spacek531 2017-07-02 04:08:44 -07:00 committed by Ted John
parent ec0f35fe7b
commit b460401ab6
2 changed files with 1 additions and 7 deletions

View File

@ -48,11 +48,5 @@ namespace Math
if (x > 0) return 1; if (x > 0) return 1;
return 0; return 0;
} }
template<typename T>
static T Ceil(T a)
{
return (std::ceil)(a);
}
} }

View File

@ -249,7 +249,7 @@ private:
case TITLE_SCRIPT_WAIT: 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 // 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<sint32>(1, Math::Ceil<sint32>(command->Seconds / UPDATE_TIME_MS)); _waitCounter = Math::Min<sint32>(1, command->Seconds / UPDATE_TIME_MS);
break; break;
case TITLE_SCRIPT_LOADMM: case TITLE_SCRIPT_LOADMM:
{ {