fix suppress savegame in G_ReadDemoTiccmd (#675)

This commit is contained in:
Roman Fomin 2022-07-22 12:16:24 +07:00 committed by GitHub
parent 6b6b3f7ff2
commit 76b716b2c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -975,9 +975,10 @@ static void G_ReadDemoTiccmd(ticcmd_t *cmd)
// killough 3/26/98, 10/98: Ignore savegames in demos
if (demoplayback &&
cmd->buttons & BT_SPECIAL &&
cmd->buttons & BT_SPECIALMASK &&
cmd->buttons & BTS_SAVEGAME)
{
cmd->buttons &= ~BTS_SAVEGAME;
cmd->buttons &= ~BT_SPECIALMASK;
players[consoleplayer].message = "Game Saved (Suppressed)";
}