From be21cb06026042d53ef2bcd108f4436db456f193 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 22 Oct 2020 20:18:41 +1100 Subject: [PATCH] - Duke: Fix `give` CCMD to ensure it works after being resurrected from the dead via god cheat. * Extension to 63cb7dd2bd13d6b5c78db970d8505468ae857195. --- source/games/duke/src/cheats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/cheats.cpp b/source/games/duke/src/cheats.cpp index 5c8061eab..411a11a8b 100644 --- a/source/games/duke/src/cheats.cpp +++ b/source/games/duke/src/cheats.cpp @@ -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;