The SceneManager.processQueue method will no longer return if a new Scene was added, after starting it. This allows any other queued operations to still be run in the same frame, rather than being delayed until the next game frame. Fix #5359

This commit is contained in:
Richard Davey 2022-12-12 14:51:05 +00:00
parent 6d0fd99a13
commit b5312b86fa

View file

@ -301,8 +301,6 @@ var SceneManager = new Class({
// Clear the pending lists
this._start.length = 0;
this._pending.length = 0;
return;
}
for (i = 0; i < this._queue.length; i++)