fixed app.step == 0 protection

master
Allen Webster 2017-11-12 14:15:11 -05:00
parent fa31c3e90d
commit 23d07141bd
3 changed files with 13 additions and 6 deletions

View File

@ -1733,10 +1733,13 @@ main(int argc, char **argv){
b32 keep_running = linuxvars.keep_running;
// NOTE(allen): Application Core Update
if (app.step == 0){
LOG("app.step == 0 -- skipping\n");
if (app.step != 0){
app.step(&sysfunc, &target, &memory_vars, &linuxvars.input, &result);
}
else{
LOG("app.step == 0 -- skipping\n");
}
// NOTE(allen): Finish the Loop
if (result.perform_kill){

View File

@ -524,10 +524,12 @@ osx_step(void){
b32 keep_running = osxvars.keep_running;
// NOTE(allen): Application Core Update
if (app.step == 0){
LOG("app.step == 0 -- skipping\n");
if (app.step != 0){
app.step(&sysfunc, &target, &memory_vars, &frame_input, &result);
}
else{
LOG("app.step == 0 -- skipping\n");
}
// NOTE(allen): Finish the Loop
if (result.perform_kill){

View File

@ -1359,10 +1359,12 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
}
// NOTE(allen): Application Core Update
if (app.step == 0){
LOG("app.step == 0 -- skipping\n");
if (app.step != 0){
app.step(&sysfunc, &target, &memory_vars, &input, &result);
}
else{
LOG("app.step == 0 -- skipping\n");
}
// NOTE(allen): Finish the Loop
if (result.perform_kill){