mirror of https://github.com/OpenRCT2/OpenRCT2.git
Removed redundant Ceil
This commit is contained in:
parent
ec0f35fe7b
commit
b460401ab6
|
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue