mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Fix massive console spam regarding the scrib's idle3 animation
This commit is contained in:
parent
b1066de81d
commit
eba6c9a8fd
@ -584,7 +584,11 @@ bool Animation::reset(AnimState &state, const NifOgre::TextKeyMap &keys, const s
|
|||||||
|
|
||||||
const std::string stoptag = groupname+": "+stop;
|
const std::string stoptag = groupname+": "+stop;
|
||||||
NifOgre::TextKeyMap::const_iterator stopkey(groupstart);
|
NifOgre::TextKeyMap::const_iterator stopkey(groupstart);
|
||||||
while(stopkey != keys.end() && stopkey->second != stoptag)
|
while(stopkey != keys.end()
|
||||||
|
// We have to ignore extra garbage at the end.
|
||||||
|
// The Scrib's idle3 animation has "Idle3: Stop." instead of "Idle3: Stop".
|
||||||
|
// Why, just why? :(
|
||||||
|
&& (stopkey->second.size() < stoptag.size() || stopkey->second.substr(0,stoptag.size()) != stoptag))
|
||||||
stopkey++;
|
stopkey++;
|
||||||
if(stopkey == keys.end())
|
if(stopkey == keys.end())
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user