mirror of https://github.com/OpenRCT2/OpenRCT2.git
parent
e5b39846b0
commit
cbe154f63b
|
@ -48,4 +48,11 @@ 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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,7 +247,7 @@ private:
|
||||||
_waitCounter = 1;
|
_waitCounter = 1;
|
||||||
break;
|
break;
|
||||||
case TITLE_SCRIPT_WAIT:
|
case TITLE_SCRIPT_WAIT:
|
||||||
_waitCounter = command->Seconds * UPDATE_FPS;
|
_waitCounter = Math::Min<sint32>(1, Math::Ceil<sint32>(command->Seconds / UPDATE_TIME_MS));
|
||||||
break;
|
break;
|
||||||
case TITLE_SCRIPT_LOADMM:
|
case TITLE_SCRIPT_LOADMM:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue