mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 06:51:15 +02:00
Fix unreachable eye blink code
This commit is contained in:
parent
a302c220f4
commit
a0bc8ae2ee
1 changed files with 1 additions and 2 deletions
|
@ -89,8 +89,7 @@ void Head::simulate(float deltaTime) {
|
|||
_timeWithoutTalking += deltaTime;
|
||||
if ((_averageLoudness - _longTermAverageLoudness) > TALKING_LOUDNESS) {
|
||||
_timeWithoutTalking = 0.0f;
|
||||
|
||||
} else if (_timeWithoutTalking < BLINK_AFTER_TALKING && _timeWithoutTalking >= BLINK_AFTER_TALKING) {
|
||||
} else if (_timeWithoutTalking - deltaTime < BLINK_AFTER_TALKING && _timeWithoutTalking >= BLINK_AFTER_TALKING) {
|
||||
forceBlink = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue