OpenTomb
OpenTomb copied to clipboard
Updating FRAME_TIME in script is not working
While converting entity scripts to proper time-dependent handling, I have noticed that set("FRAME_TIME", time)
line in script.h is not working at all! FRAME_TIME
value remains constant of 1/60 all time, and set
function is ignored.
This results in completely wrong timing for certain entities, like darts or TR2 helicopter.
Maybe this was due to vsync? With the fixed timesteps this should return GAME_LOGIC_REFRESH_INTERVAL anyway - the darts at the beginning of tr1 lvl1 seemed to work.
I think it was addressed in 6cfb1778b584cb72a0f49910513d7e856d774446, but Lwmte forgot to modify this issue.