Skip to content

Commit e54aeb9

Browse files
author
lalien
committed
Original Source for 1.13 Mod High Resolution version from 12/06/05
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
0 parents  commit e54aeb9

File tree

790 files changed

+741287
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

790 files changed

+741287
-0
lines changed

Cheats.h

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#ifndef _CHEATS__H_
2+
#define _CHEATS__H_
3+
4+
#include "Language Defines.h"
5+
6+
7+
extern UINT8 gubCheatLevel;
8+
9+
10+
11+
12+
// GLOBALS FOR CHEAT MODE......
13+
#ifdef GERMAN
14+
#ifdef JA2TESTVERSION
15+
#define STARTING_CHEAT_LEVEL 7
16+
#elif defined JA2BETAVERSION
17+
#define STARTING_CHEAT_LEVEL 5
18+
#else
19+
#define STARTING_CHEAT_LEVEL 0
20+
#endif
21+
#else
22+
#ifdef JA2TESTVERSION
23+
#define STARTING_CHEAT_LEVEL 6
24+
#elif defined JA2BETAVERSION
25+
#define STARTING_CHEAT_LEVEL 3
26+
#else
27+
#define STARTING_CHEAT_LEVEL 0
28+
#endif
29+
#endif
30+
31+
32+
33+
#ifdef GERMAN
34+
35+
// ATE: remove cheats unless we're doing a debug build
36+
//#ifdef JA2TESTVERSION
37+
#define INFORMATION_CHEAT_LEVEL( ) ( gubCheatLevel >= 5 )
38+
#define CHEATER_CHEAT_LEVEL( ) ( gubCheatLevel >= 6 )
39+
#define DEBUG_CHEAT_LEVEL( ) ( gubCheatLevel >= 7 )
40+
//#else
41+
// #define INFORMATION_CHEAT_LEVEL( ) ( FALSE )
42+
// #define CHEATER_CHEAT_LEVEL( ) ( FALSE )
43+
// #define DEBUG_CHEAT_LEVEL( ) ( FALSE )
44+
//#endif
45+
46+
#define RESET_CHEAT_LEVEL( ) ( gubCheatLevel = 0 )
47+
48+
#else
49+
50+
// ATE: remove cheats unless we're doing a debug build
51+
//#ifdef JA2TESTVERSION
52+
#define INFORMATION_CHEAT_LEVEL( ) ( gubCheatLevel >= 3 )
53+
#define CHEATER_CHEAT_LEVEL( ) ( gubCheatLevel >= 5 )
54+
#define DEBUG_CHEAT_LEVEL( ) ( gubCheatLevel >= 6 )
55+
//#else
56+
// #define INFORMATION_CHEAT_LEVEL( ) ( FALSE )
57+
// #define CHEATER_CHEAT_LEVEL( ) ( FALSE )
58+
// #define DEBUG_CHEAT_LEVEL( ) ( FALSE )
59+
//#endif
60+
61+
#define RESET_CHEAT_LEVEL( ) ( gubCheatLevel = 0 )
62+
#endif
63+
64+
65+
#endif

0 commit comments

Comments
 (0)