From 966befc41a3d6ed068b64be58a3860965c736d3b Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 8 Mar 2023 09:47:52 -0700 Subject: [PATCH] stopWaitForInput needs to check for same cc --- src/hollywoo_flixel/FlxDirector.kiss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index e8ebba5..23455ad 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -75,8 +75,9 @@ (method :Void startWaitForInput [:Continuation cc] (set nextCC cc)) -(method :Void stopWaitForInput [] - (set nextCC null)) +(method :Void stopWaitForInput [:Continuation cc] + (when (= nextCC cc) + (set nextCC null))) (var TITLE_Y 240) (var TITLE_SIZE 72)