1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-02-24 23:42:49 +01:00

fix timer loading

This commit is contained in:
XProger 2018-10-26 21:12:10 +03:00
parent 7f15db1899
commit 0b19529e4f

View File

@ -514,7 +514,7 @@ struct Controller {
roomIndex = data.room;
}
flags.value = e.flags.value ^ data.flags;
timer = data.timer == -1 ? -1.0f : (timer / 30.0f);
timer = data.timer == -1 ? -1.0f : (data.timer / 30.0f);
// animation
if (m) animation.setAnim(data.animIndex, -data.animFrame);
updateLights(false);