Fix for [#31276] Action Actuator, Priorities higher than 1 break Playback:

The code was looking to see if the priority was strictly greater than the current priority, but it seems that an equal priority should also override (at least the report seems to suggest that this is the behavior from 2.49).
This commit is contained in:
Mitchell Stokes
2012-05-23 04:01:05 +00:00
parent 795edb74fa
commit f6d5b7ffd7

View File

@@ -127,7 +127,7 @@ bool BL_Action::Play(const char* name,
// Only start playing a new action if we're done, or if
// the new action has a higher priority
if (priority != 0 && !IsDone() && priority >= m_priority)
if (!IsDone() && priority > m_priority)
return false;
m_priority = priority;
bAction* prev_action = m_action;