diasurgical / diasurgical/devilution

Fix debug commands for release builds

Open
#1,472 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Throughout the code you will see stuff like:
```c
#ifdef _DEBUG
if ( godmode || p == pnum)
#else
if ( p == pnum)
```
There's no way they wrote the code like this. Given that all of the affected debug flags are not present in the release build's memory, it implies they did the following:
```c
#ifdef _DEBUG
int godmode = TRUE;
#else
#define godmode 0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.