Dialog fixing

This commit is contained in:
Vladislav Khorev committed 2026-05-22 22:32:05 +03:00
1 parent 8c200974c2
commit 84c8a7a27a
13 files changed
+169 -43

No files matched your search

+13 -5
View File
@@ -104,6 +104,19 @@ void Character::stopInPlace()
onArrivedCallback = nullptr;
}
void Character::resetPlayerAfterDeath()
{
if (!isPlayer)
{
return;
}
currentState = AnimationState::STAND;
resetAnim = true;
showWeapon = false;
battle_state = 0;
attack = 0;
}
void Character::forceReplan()
{
if (!pathPlanner) {
@@ -456,11 +469,6 @@ void Character::update(int64_t deltaMs) {
//onDeathAnimComplete = nullptr;
onDeathAnimComplete();
//TODO: need to add some delay here
currentState = AnimationState::STAND;
resetAnim = true;
showWeapon = false;
battle_state = 0;
attack = 0;
}
}
}