mirror of https://github.com/OpenRCT2/OpenRCT2.git
Removed redundant Ceil
This commit is contained in:
parent
ec0f35fe7b
commit
b460401ab6
|
@ -49,10 +49,4 @@ namespace Math
|
|||
return 0;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static T Ceil(T a)
|
||||
{
|
||||
return (std::ceil)(a);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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<sint32>(1, Math::Ceil<sint32>(command->Seconds / UPDATE_TIME_MS));
|
||||
_waitCounter = Math::Min<sint32>(1, command->Seconds / UPDATE_TIME_MS);
|
||||
break;
|
||||
case TITLE_SCRIPT_LOADMM:
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue