avm1: Run Player::run_actions after every timer callback.
This commit is contained in:
parent
71a17166f4
commit
3030f2098a
|
@ -111,6 +111,8 @@ impl<'gc> Timers<'gc> {
|
|||
base_proto,
|
||||
¶ms,
|
||||
);
|
||||
|
||||
crate::player::Player::run_actions(&mut activation.context);
|
||||
}
|
||||
|
||||
let mut timer = activation.context.timers.peek_mut().unwrap();
|
||||
|
|
|
@ -1066,7 +1066,7 @@ impl Player {
|
|||
&self.locale
|
||||
}
|
||||
|
||||
fn run_actions<'gc>(context: &mut UpdateContext<'_, 'gc, '_>) {
|
||||
pub fn run_actions<'gc>(context: &mut UpdateContext<'_, 'gc, '_>) {
|
||||
// Note that actions can queue further actions, so a while loop is necessary here.
|
||||
while let Some(actions) = context.action_queue.pop_action() {
|
||||
// We don't run frame actions if the clip was removed after it queued the action.
|
||||
|
|
Loading…
Reference in New Issue