PCExhumed: Fix cheat messages

This commit is contained in:
sirlemonhead 2020-06-10 00:08:47 +01:00 committed by Christoph Oelckers
parent 54ce1b5c06
commit 2e514e539e
2 changed files with 28 additions and 16 deletions

View file

@ -426,14 +426,14 @@ const char *gString[] =
"HI SWEETIE, I LOVE YOU", "HI SWEETIE, I LOVE YOU",
"", "",
"", "",
"SNAKE CAM ENABLED",
"FLASHES TOGGLED", "FLASHES TOGGLED",
"",
"",
"",
"FULL MAP", "FULL MAP",
"", "",
"", "",
"", "",
"",
"",
"EOF", "EOF",
"", "",
}; };
@ -857,6 +857,11 @@ void DoPassword(int nPassword)
break; break;
} }
case 1: // KIMBERLY
{
break;
}
case 2: // LOBOCOP case 2: // LOBOCOP
{ {
lLocalCodes |= kButtonCheatGuns; lLocalCodes |= kButtonCheatGuns;
@ -869,9 +874,10 @@ void DoPassword(int nPassword)
break; break;
} }
case 4: case 4: // LOBOLITE
{ {
if (bDoFlashes == kFalse) { if (bDoFlashes == kFalse)
{
bDoFlashes = kTrue; bDoFlashes = kTrue;
} }
else { else {
@ -880,57 +886,61 @@ void DoPassword(int nPassword)
break; break;
} }
case 5: case 5: // LOBOPICK
{ {
lLocalCodes |= kButtonCheatKeys; lLocalCodes |= kButtonCheatKeys;
break; break;
} }
case 6: case 6: // LOBOSLIP
{ {
if (!nNetPlayerCount) if (!nNetPlayerCount)
{ {
if (bSlipMode == kFalse) if (bSlipMode == kFalse)
{ {
bSlipMode = kTrue; bSlipMode = kTrue;
StatusMessage(300, "Slip mode %s", "ON"); StatusMessage(300, "Slip mode ON");
} }
else { else {
bSlipMode = kFalse; bSlipMode = kFalse;
StatusMessage(300, "Slip mode %s", "OFF"); StatusMessage(300, "Slip mode OFF");
} }
} }
break; break;
} }
case 7: case 7: // LOBOSNAKE
{ {
if (!nNetPlayerCount) if (!nNetPlayerCount)
{ {
if (bSnakeCam == kFalse) { if (bSnakeCam == kFalse)
{
bSnakeCam = kTrue; bSnakeCam = kTrue;
StatusMessage(750, "SNAKE CAM ENABLED");
} }
else { else
{
bSnakeCam = kFalse; bSnakeCam = kFalse;
StatusMessage(750, "SNAKE CAM DISABLED");
} }
} }
break; break;
} }
case 8: case 8: // LOBOSPHERE
{ {
GrabMap(); GrabMap();
bShowTowers = kTrue; bShowTowers = kTrue;
break; break;
} }
case 9: case 9: // LOBOSWAG
{ {
lLocalCodes |= kButtonCheatItems; // LOBOSWAG lLocalCodes |= kButtonCheatItems;
break; break;
} }
case 10: case 10: // LOBOXY
{ {
if (bCoordinates == kFalse) { if (bCoordinates == kFalse) {
bCoordinates = kTrue; bCoordinates = kTrue;

View file

@ -714,12 +714,14 @@ void DrawStatus()
// draw compass // draw compass
seq_DrawStatusSequence(nStatusSeqOffset + 35, ((inita + 128) & kAngleMask) >> 8, 0); seq_DrawStatusSequence(nStatusSeqOffset + 35, ((inita + 128) & kAngleMask) >> 8, 0);
/*
if (bCoordinates) if (bCoordinates)
{ {
sprintf(numberBuf, "%i", lastfps); sprintf(numberBuf, "%i", lastfps);
// char *cFPS = itoa(lastfps, numberBuf, 10); // char *cFPS = itoa(lastfps, numberBuf, 10);
printext(xdim - 20, nViewTop, numberBuf, kTile159, -1); printext(xdim - 20, nViewTop, numberBuf, kTile159, -1);
} }
*/
// draw ammo count // draw ammo count
seq_DrawStatusSequence(nStatusSeqOffset + 44, nDigit[2], 0); seq_DrawStatusSequence(nStatusSeqOffset + 44, nDigit[2], 0);