# HG changeset patch # User Adam Kaminski # Date 1627015127 14400 # Fri Jul 23 00:38:47 2021 -0400 # Node ID 068ab3534f45bc313c22cd33bbfde4f29cf7533b # Parent bdf6f143e7e48cf7ca28a522b78b6c2b5f678acb The ACS function SetDeadSpectator now only works while the game is in progress. diff -r bdf6f143e7e4 -r 068ab3534f45 src/p_acs.cpp --- a/src/p_acs.cpp Fri Jul 23 00:31:36 2021 -0400 +++ b/src/p_acs.cpp Fri Jul 23 00:38:47 2021 -0400 @@ -7214,6 +7214,10 @@ if ( ( GAMEMODE_GetCurrentFlags() & GMF_DEADSPECTATORS ) == false ) return 0; + // [AK] This should only work while the game is in progress. + if ( GAMEMODE_GetState( ) != GAMESTATE_INPROGRESS ) + return 0; + if ( PLAYER_IsValidPlayer ( ulPlayer ) == false ) return 0;