Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug: Insivible #7543

Merged
merged 3 commits into from
Nov 16, 2024
Merged

Debug: Insivible #7543

merged 3 commits into from
Nov 16, 2024

Conversation

kphoenix137
Copy link
Collaborator

Adds invisibility to debug options to avoid dealing with annoying monsters while trying to test things.

@StephenCWills
Copy link
Member

This is useful, but here's how I usually do it.

diff --git a/Source/diablo.cpp b/Source/diablo.cpp
index 7615268c7..cc3d7c2ab 100644
--- a/Source/diablo.cpp
+++ b/Source/diablo.cpp
@@ -1440,7 +1440,8 @@ void GameLogic()
 	}
 	if (leveltype != DTYPE_TOWN) {
 		gGameLogicStep = GameLogicStep::ProcessMonsters;
-		ProcessMonsters();
+		if (DebugToggle)
+			ProcessMonsters();
 		gGameLogicStep = GameLogicStep::ProcessObjects;
 		ProcessObjects();
 		gGameLogicStep = GameLogicStep::ProcessMissiles;

@AJenbo AJenbo merged commit f1d48d7 into diasurgical:master Nov 16, 2024
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants