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:
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user