# HG changeset patch # User Adam Kaminski # Date 1626734407 14400 # Mon Jul 19 18:40:07 2021 -0400 # Node ID acfe0e81776a2842525c7ae92d3a3e4fe61010da # Parent 0712611314d514ea28c6e01f70707893a93d291c Fixed a player's old body from being frozen and not finishing their animation when they become a dead spectator. diff -r 0712611314d5 -r acfe0e81776a docs/zandronum-history.txt --- a/docs/zandronum-history.txt Sat Jul 17 10:50:22 2021 -0400 +++ b/docs/zandronum-history.txt Mon Jul 19 18:40:07 2021 -0400 @@ -87,6 +87,7 @@ - - The console and chat no longer opens or closes while the user is holding down the grave or enter keys. This makes it extremely difficult to flicker the console or chat icons and trigger client command floods. [Kaminsky] - - Fixed "####" and "----" in PlayerPawns. [Zandrewnum] - - Fixed dormant sounds from still playing upon resetting the map. [Kaminsky] +- - Fixed a player's old body from being frozen and not finishing their animation when they become a dead spectator. [Kaminsky] ! - sv_forcegldefaults renamed to sv_forcevideodefaults. The old name still exists for compatibility. [Dusk] ! - r_3dfloors is now forced to be true when sv_forcevideodefaults is true. [Dusk] ! - When the wad authentication fails for a connecting client, the client only reports the missing and incompatible PWADS instead of all of them. [Pol Marcet] diff -r 0712611314d5 -r acfe0e81776a src/p_mobj.cpp --- a/src/p_mobj.cpp Sat Jul 17 10:50:22 2021 -0400 +++ b/src/p_mobj.cpp Mon Jul 19 18:40:07 2021 -0400 @@ -5836,6 +5836,12 @@ // [Spleen] Reset reconciliation buffer when player gets spawned UNLAGGED_ResetPlayer( p ); + // [AK] If the player is supposed to be a dead spectator, disassociate them + // from the old body. This prevents the old body from being frozen and not + // finishing their animation when they become a spectator. + if (( p->bSpectating ) && ( oldactor != NULL ) && ( oldactor->player == p )) + oldactor->player = NULL; + return mobj; }