From: Holger Schemel Date: Thu, 21 Mar 2019 23:05:57 +0000 (+0100) Subject: fixed inconsistent global animation state after event actions X-Git-Tag: 4.1.3.0~23 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;ds=sidebyside;h=97aa8b2f63cbd4c210d20264f57bae3e342b14d4;hp=97aa8b2f63cbd4c210d20264f57bae3e342b14d4;p=rocksndiamonds.git fixed inconsistent global animation state after event actions When executing event actions for global animations, these actions may cause a screen change, which itself may change the state of global animations (especially stopping animations that were running on the previous screen). When executing event actions directly from the functions that handle global animations, these functions may continue changing the state of the global animation that caused the event action, even though this animation was already stopped due to a screen change, which may cause this animation to be set back to "active" ("running") state, so that it continues being displayed on the new screen, even though it was never defined for it. This problem was fixed by executing all event actions independently from the animation handling functions, by inserting new user events into the program's standard event queue, to handle animation event actions in a separate, independent step after all animations were handled. ---