- added MSTimef script function

This also deprecates MSTime due to value range / overflow issues.
This commit is contained in:
Christoph Oelckers 2022-04-29 00:47:06 +02:00
commit bd885977e8
2 changed files with 7 additions and 1 deletions

View file

@ -493,6 +493,11 @@ DEFINE_ACTION_FUNCTION(DObject, MSTime)
ACTION_RETURN_INT((uint32_t)I_msTime());
}
DEFINE_ACTION_FUNCTION_NATIVE(DObject, MSTimef, I_msTimeF)
{
ACTION_RETURN_INT((double)I_msTimeF());
}
void *DObject::ScriptVar(FName field, PType *type)
{
auto cls = GetClass();