mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-16 01:54:38 +02:00
fixed #130 timed switch trigger management
This commit is contained in:
@@ -37,8 +37,10 @@ struct Switch : Controller {
|
|||||||
virtual void update() {
|
virtual void update() {
|
||||||
updateAnimation(true);
|
updateAnimation(true);
|
||||||
flags.active = TR::ACTIVE;
|
flags.active = TR::ACTIVE;
|
||||||
if (!isActive())
|
if (!isActive()) {
|
||||||
animation.setState(STATE_UP);
|
animation.setState(STATE_UP);
|
||||||
|
timer = 0.0f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user