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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user