mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
.editorconfig already enforces it but it's getting changed piecemeal in every commit. just get it done with. the script: ``` find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do isFile=$(file -0 "$file" | cut -d $'\0' -f2) case "$isFile" in (*text*) echo "$file is text" if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then echo "" >> "$file" fi ;; (*) echo "file isn't text" ;; esac done ```
26 lines
719 B
C
26 lines
719 B
C
#ifndef _CHEATS__H_
|
|
#define _CHEATS__H_
|
|
|
|
#include "Language Defines.h"
|
|
|
|
extern UINT8 gubCheatLevel;
|
|
|
|
// GLOBALS FOR CHEAT MODE......
|
|
#ifdef JA2TESTVERSION
|
|
#define STARTING_CHEAT_LEVEL 6
|
|
#elif defined JA2BETAVERSION
|
|
#define STARTING_CHEAT_LEVEL 3
|
|
#else
|
|
#define STARTING_CHEAT_LEVEL 0
|
|
#endif
|
|
|
|
// ATE: remove cheats unless we're doing a debug build
|
|
#define INFORMATION_CHEAT_LEVEL( ) ( gubCheatLevel >= 3 )
|
|
#define CHEATER_CHEAT_LEVEL( ) ( gubCheatLevel >= 5 )
|
|
#define DEBUG_CHEAT_LEVEL( ) ( gubCheatLevel >= 6 )
|
|
|
|
#define RESET_CHEAT_LEVEL( ) ( gubCheatLevel = 0 )
|
|
#define ACTIVATE_CHEAT_LEVEL() ( gubCheatLevel = 6 )
|
|
|
|
#endif
|