From f85b313c7466ce7f456abafebe7ebd44180086d2 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sun, 12 Nov 2017 13:52:30 -0500 Subject: [PATCH] app.step == 0 protection --- platform_mac/mac_4ed.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform_mac/mac_4ed.cpp b/platform_mac/mac_4ed.cpp index 426a0d8d..2be81515 100644 --- a/platform_mac/mac_4ed.cpp +++ b/platform_mac/mac_4ed.cpp @@ -480,6 +480,11 @@ osx_try_to_close(void){ external void osx_step(void){ DBG_POINT(); + if (app.step == 0){ + LOG("app.step == 0 -- skipping\n"); + return; + } + Application_Step_Result result = {}; result.mouse_cursor_type = APP_MOUSE_CURSOR_DEFAULT; result.trying_to_kill = !osxvars.keep_running;