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

View file

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