mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed JIT target function for GetTimeFrac.
I_GetTimeFrac has default parameters so it cannot be used directly.
This commit is contained in:
parent
c5eec7b8bb
commit
18115ef455
1 changed files with 6 additions and 1 deletions
|
@ -1055,7 +1055,12 @@ DEFINE_ACTION_FUNCTION_NATIVE(_System, MusicEnabled, MusicEnabled)
|
|||
ACTION_RETURN_INT(MusicEnabled());
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_System, GetTimeFrac, I_GetTimeFrac)
|
||||
static double Jit_GetTimeFrac() // cannot use I_GetTimwfrac directly due to default arguments.
|
||||
{
|
||||
return I_GetTimeFrac();
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_System, GetTimeFrac, Jit_GetTimeFrac)
|
||||
{
|
||||
ACTION_RETURN_FLOAT(I_GetTimeFrac());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue