# HG changeset patch # User Adam Kaminski # Date 1611081099 18000 # Tue Jan 19 13:31:39 2021 -0500 # Node ID cd28a441f971550d1ffd6fb18cec098d4bcea6f9 # Parent a848d7321690e140b4982d5eb9b433043e71deb6 Fixed spectators from receiving items using A_RadiusGive if RGF_PLAYERS was added. diff -r a848d7321690 -r cd28a441f971 src/thingdef/thingdef_codeptr.cpp --- a/src/thingdef/thingdef_codeptr.cpp Wed Jan 20 19:00:48 2021 -0500 +++ b/src/thingdef/thingdef_codeptr.cpp Tue Jan 19 13:31:39 2021 -0500 @@ -5856,7 +5856,8 @@ continue; } // Players, monsters, and other shootable objects - if (thing->player) + // [AK] Don't give items to spectators. + if ((thing->player) && (thing->player->bSpectating == false)) { if ((thing->player->mo == thing) && !(flags & RGF_PLAYERS)) {