1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-15 09:34:18 +02:00

fixed #130 timed switch trigger management

This commit is contained in:
XProger
2018-06-29 00:20:52 +03:00
parent 66cb169240
commit cb20b38839

View File

@@ -37,8 +37,10 @@ struct Switch : Controller {
virtual void update() {
updateAnimation(true);
flags.active = TR::ACTIVE;
if (!isActive())
if (!isActive()) {
animation.setState(STATE_UP);
timer = 0.0f;
}
}
};