# HG changeset patch # User Adam Kaminski # Date 1638641037 18000 # Sat Dec 04 13:03:57 2021 -0500 # Node ID 0a4ec1d1f7acd17d7e653250dd19129f33901171 # Parent 3147116cf3a27dd3260fcb0c7df8fbbe970788b6 Fixed the loser of a duel not being sent to spectators if the level changed in the middle of the win sequence. diff -r 3147116cf3a2 -r 0a4ec1d1f7ac src/p_setup.cpp --- a/src/p_setup.cpp Thu Dec 02 00:13:21 2021 -0500 +++ b/src/p_setup.cpp Sat Dec 04 13:03:57 2021 -0500 @@ -4670,6 +4670,11 @@ // a "map" map change during possessions hold countdown to a CTF/ST map, the counter would stay // on the screen of the clients after the map change. { + // [AK] In case we changed levels in the middle of a duel's win sequence, just start a new duel + // so the loser still gets sent to spectators. + if (( DUEL_GetState( ) == DS_WINSEQUENCE ) && ( DUEL_GetStartNextDuelOnLevelLoad( ) == false )) + DUEL_SetStartNextDuelOnLevelLoad( true ); + DUEL_SetState( DS_WAITINGFORPLAYERS ); LASTMANSTANDING_SetState( LMSS_WAITINGFORPLAYERS ); POSSESSION_SetState( PSNS_WAITINGFORPLAYERS );