This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).
Revisión | 3711f9ff3c1f7142d9314814e660a71b940f2bb0 (tree) |
---|---|
Tiempo | 2021-12-05 03:03:57 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed the loser of a duel not being sent to spectators if the level changed in the middle of the win sequence.
@@ -4670,6 +4670,11 @@ | ||
4670 | 4670 | // a "map" map change during possessions hold countdown to a CTF/ST map, the counter would stay |
4671 | 4671 | // on the screen of the clients after the map change. |
4672 | 4672 | { |
4673 | + // [AK] In case we changed levels in the middle of a duel's win sequence, just start a new duel | |
4674 | + // so the loser still gets sent to spectators. | |
4675 | + if (( DUEL_GetState( ) == DS_WINSEQUENCE ) && ( DUEL_GetStartNextDuelOnLevelLoad( ) == false )) | |
4676 | + DUEL_SetStartNextDuelOnLevelLoad( true ); | |
4677 | + | |
4673 | 4678 | DUEL_SetState( DS_WAITINGFORPLAYERS ); |
4674 | 4679 | LASTMANSTANDING_SetState( LMSS_WAITINGFORPLAYERS ); |
4675 | 4680 | POSSESSION_SetState( PSNS_WAITINGFORPLAYERS ); |