summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-07 23:59:10 +0200
committerGitHub <noreply@github.com>2020-10-07 23:59:10 +0200
commit8b7bf76260ab7577a230cc37b42e149234513e6e (patch)
tree4a0fd8df8835de36d252de5fefb796b07edac4a4 /src/core/Pad.cpp
parentFix build on clang (diff)
parentback to the future style wheels on flying (diff)
downloadre3-8b7bf76260ab7577a230cc37b42e149234513e6e.tar
re3-8b7bf76260ab7577a230cc37b42e149234513e6e.tar.gz
re3-8b7bf76260ab7577a230cc37b42e149234513e6e.tar.bz2
re3-8b7bf76260ab7577a230cc37b42e149234513e6e.tar.lz
re3-8b7bf76260ab7577a230cc37b42e149234513e6e.tar.xz
re3-8b7bf76260ab7577a230cc37b42e149234513e6e.tar.zst
re3-8b7bf76260ab7577a230cc37b42e149234513e6e.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 36e14e55..910a8c52 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -412,7 +412,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;
@@ -542,22 +546,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)
{
@@ -1444,12 +1432,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"))
@@ -3166,6 +3148,9 @@ void CPad::ResetCheats(void)
CVehicle::bCheat4 = false;
CVehicle::bCheat5 = false;
CVehicle::bCheat8 = false;
+#ifdef RESTORE_ALLCARSHELI_CHEAT
+ bAllCarCheat = false;
+#endif
gbBlackCars = false;
gbPinkCars = false;
CCarCtrl::bMadDriversCheat = false;