mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 11:36:43 +00:00
Clear 'swim' from the animation name as a backup instead of 'sneak'
This commit is contained in:
parent
9ea6b22a83
commit
e78bdd2a5d
1 changed files with 3 additions and 3 deletions
|
@ -191,13 +191,13 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
|
||||||
|
|
||||||
if(!mAnimation->hasAnimation(movement))
|
if(!mAnimation->hasAnimation(movement))
|
||||||
{
|
{
|
||||||
std::string::size_type sneakpos = movement.find("sneak");
|
std::string::size_type swimpos = movement.find("swim");
|
||||||
if(sneakpos == std::string::npos)
|
if(swimpos == std::string::npos)
|
||||||
movement.clear();
|
movement.clear();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
movegroup = MWRender::Animation::Group_LowerBody;
|
movegroup = MWRender::Animation::Group_LowerBody;
|
||||||
movement.erase(sneakpos, 5);
|
movement.erase(swimpos, 4);
|
||||||
if(!mAnimation->hasAnimation(movement))
|
if(!mAnimation->hasAnimation(movement))
|
||||||
movement.clear();
|
movement.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue