From 683818b63790eaad244903cc1d13e90ce46047d6 Mon Sep 17 00:00:00 2001 From: KeybadeBlox Date: Sat, 3 Jan 2026 16:13:44 -0500 Subject: [PATCH] Separate compiler optimization flags The /O2 used before was actually a preset for a bunch of more specific flags, which are now written explicitly for clarity and easier modification later. --- decompile/Makefile | 2 +- decompile/src/JSRF/Core.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decompile/Makefile b/decompile/Makefile index 48a4ba7..92d8f5f 100644 --- a/decompile/Makefile +++ b/decompile/Makefile @@ -3,7 +3,7 @@ all: src/JSRF/Jet2.obj # Simple inference rule for producing object files .SUFFIXES: .cpp .obj .cpp.obj: - CL.EXE /nologo /Wall /TP /W3 /O2 /Ob0 /MT /GX /Fo$@ /c $< + CL.EXE /nologo /Wall /TP /W3 /Ogityb0 /MT /GX /Fo$@ /c $< # Header files used for each object src/JSRF/Jet2.obj: src/JSRF/Core.hpp src/XDK/D3D.hpp src/XDK/Win32.hpp\ diff --git a/decompile/src/JSRF/Core.cpp b/decompile/src/JSRF/Core.cpp index 62ae1cd..84141ab 100644 --- a/decompile/src/JSRF/Core.cpp +++ b/decompile/src/JSRF/Core.cpp @@ -569,7 +569,7 @@ void Game::frame() { // Matching: yes int Game::mainLoop() { if (this->initState >= 0) while (true) { - if (this->fatalErr == FALSE) this->frame(); + if (!this->fatalErr) this->frame(); else { readInput(); Sleep(0x10);