I hope this isn't a joke of a commit

I have no idea.
This commit is contained in:
spacek531 2017-07-02 03:53:31 -07:00 committed by Ted John
parent e5b39846b0
commit cbe154f63b
2 changed files with 8 additions and 1 deletions

View File

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

View File

@ -247,7 +247,7 @@ private:
_waitCounter = 1;
break;
case TITLE_SCRIPT_WAIT:
_waitCounter = command->Seconds * UPDATE_FPS;
_waitCounter = Math::Min<sint32>(1, Math::Ceil<sint32>(command->Seconds / UPDATE_TIME_MS));
break;
case TITLE_SCRIPT_LOADMM:
{