OpenTomb icon indicating copy to clipboard operation
OpenTomb copied to clipboard

Updating FRAME_TIME in script is not working

Open Lwmte opened this issue 9 years ago • 2 comments

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.

Lwmte avatar Aug 18 '15 11:08 Lwmte

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.

T4Larson avatar Sep 05 '15 22:09 T4Larson

I think it was addressed in 6cfb1778b584cb72a0f49910513d7e856d774446, but Lwmte forgot to modify this issue.

vvs- avatar Sep 06 '15 14:09 vvs-