- Duke: Fix `give` CCMD to ensure it works after being resurrected from the dead via god cheat.

* Extension to 63cb7dd2bd.
This commit is contained in:
Mitchell Richters 2020-10-22 20:18:41 +11:00
parent f46d9499a5
commit be21cb0602
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ static void cmd_Give(int player, uint8_t** stream, bool skip)
int type = ReadByte(stream);
if (skip) return;
if (numplayers != 1 || gamestate != GS_LEVEL || ps[player].dead_flag != 0)
if (numplayers != 1 || gamestate != GS_LEVEL || sprite[ps[player].i].extra <= 0)
{
Printf("give: Cannot give while dead or not in a single-player game.\n");
return;