I found some code bugs while building SRB2 1.09.4 with Chaos mode enabled. Both are in Doomstat.h.
Bug 1 results in GT_CHAOS not being defined. To fix it, switch the NUMGAMETYPES 6 define with the NUMGAMETYPES 5 define in the GT_* list.
Bug 2 results in TOL_CHAOS not being defined. To fix it, change #ifdef to #ifndef in the TOL_* list.
Fixed code for Bug 1:
Fixed code for Bug 2:
Some context was included in Bug 2.
Bug 1 results in GT_CHAOS not being defined. To fix it, switch the NUMGAMETYPES 6 define with the NUMGAMETYPES 5 define in the GT_* list.
Bug 2 results in TOL_CHAOS not being defined. To fix it, change #ifdef to #ifndef in the TOL_* list.
Fixed code for Bug 1:
Code:
#ifndef CHAOSISNOTDEADYET
#define NUMGAMETYPES 6
#define GT_CHAOS 5
#else
#define NUMGAMETYPES 5
Fixed code for Bug 2:
Code:
#ifndef CHAOSISNOTDEADYET
#define TOL_CHAOS 32 ///< Chaos
#endif