From 4caac0d859f1232ed44191357698c4c03e38793e Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 5 Aug 2013 02:05:49 +0200 Subject: [PATCH] Fix idle animations repeating --- apps/openmw/mwmechanics/character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 622ff68b7..0a547b4d3 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -776,7 +776,7 @@ void CharacterController::playGroup(const std::string &groupname, int mode, int else { count = std::max(count, 1); - if(mode != 0 || mAnimQueue.empty()) + if(mode != 0 || mAnimQueue.empty() || !isAnimPlaying(mAnimQueue.front().first)) { clearAnimQueue(); mAnimQueue.push_back(std::make_pair(groupname, count-1));