app.step == 0 protection

This commit is contained in:
Allen Webster 2017-11-12 13:52:30 -05:00
parent 345f9d31ac
commit f85b313c74
1 changed files with 5 additions and 0 deletions

View File

@ -480,6 +480,11 @@ osx_try_to_close(void){
external void external void
osx_step(void){ osx_step(void){
DBG_POINT(); DBG_POINT();
if (app.step == 0){
LOG("app.step == 0 -- skipping\n");
return;
}
Application_Step_Result result = {}; Application_Step_Result result = {};
result.mouse_cursor_type = APP_MOUSE_CURSOR_DEFAULT; result.mouse_cursor_type = APP_MOUSE_CURSOR_DEFAULT;
result.trying_to_kill = !osxvars.keep_running; result.trying_to_kill = !osxvars.keep_running;