summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-08 00:29:35 +0200
committerGitHub <noreply@github.com>2020-10-08 00:29:35 +0200
commitfa373c7fdb362ffe1749cbc3de5376a97beb2f87 (patch)
tree0ed0c91aed4a945acf66a61dc349f2140b49e616 /src/core/Pad.cpp
parentPad, BulletInfo, ProjectileInfo, fixes (diff)
parentMerge pull request #735 from theR4K/miami (diff)
downloadre3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.gz
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.bz2
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.lz
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.xz
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.zst
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp29
1 files changed, 7 insertions, 22 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 785927ce..aa6e5cc8 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -504,7 +504,11 @@ void OnlyRenderWheelsCheat()
void ChittyChittyBangBangCheat()
{
+#ifdef BETTER_ALLCARSAREDODO_CHEAT
+ CHud::SetHelpMessage(TheText.Get(!CVehicle::bAllDodosCheat ? "CHEAT1" : "CHEATOF"), true);
+#else
CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+#endif
CVehicle::bAllDodosCheat = !CVehicle::bAllDodosCheat;
CStats::CheatedCount += 1000;
CPad::bHasPlayerCheated = true;
@@ -629,22 +633,6 @@ void AllCarsHeliCheat(void)
}
#endif
-#ifdef ALT_DODO_CHEAT
-void AltDodoCheat(void)
-{
- wchar* string;
- if (CVehicle::bAltDodoCheat) {
- string = TheText.Get("CHEATOF");
- CVehicle::bAltDodoCheat = false;
- }
- else {
- string = TheText.Get("CHEAT1");
- CVehicle::bAltDodoCheat = true;
- }
- CHud::SetHelpMessage(string, true);
-}
-#endif
-
#ifdef WALLCLIMB_CHEAT
void WallClimbingCheat(void)
{
@@ -1546,12 +1534,6 @@ void CPad::AddToPCCheatString(char c)
AllCarsHeliCheat();
#endif
-#ifdef ALT_DODO_CHEAT
- // "IWANTTOMASTERDODO"
- if (!_CHEATCMP("ODODRETSAMOTTNAWI"))
- AltDodoCheat();
-#endif
-
#ifdef WALLCLIMB_CHEAT
// "SPIDERCAR"
if (!_CHEATCMP("RACREDIPS"))
@@ -3365,6 +3347,9 @@ void CPad::ResetCheats(void)
CVehicle::bCheat8 = false;
CVehicle::bCheat9 = false;
CVehicle::bCheat10 = false;
+#ifdef RESTORE_ALLCARSHELI_CHEAT
+ bAllCarCheat = false;
+#endif
gbBlackCars = false;
gbPinkCars = false;