diasurgical / diasurgical/devilution
Fix debug commands for release builds
Open
- 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
Assessment
This issue has not been assessed yet.