• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for TSPG.


Commit MetaInfo

Revision62e12bc075dddaa7b92681b4a40008ab10fcf1fa (tree)
Time2021-12-01 02:08:12
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed survival being stuck in the "mission failed" state indefinitely if it was interrupted by the intermission screen.

Change Summary

Incremental Difference

diff -r 982a9da3e0a0 -r 62e12bc075dd src/p_setup.cpp
--- a/src/p_setup.cpp Sun Nov 28 23:40:25 2021 +0000
+++ b/src/p_setup.cpp Tue Nov 30 12:08:12 2021 -0500
@@ -4680,6 +4680,16 @@
46804680 // [BB] We have to reset the state though when this is a new game.
46814681 if ( ( SURVIVAL_GetState( ) == SURVS_COUNTDOWN ) || ( gameaction == ga_newgame ) )
46824682 SURVIVAL_SetState( SURVS_WAITINGFORPLAYERS );
4683+
4684+ // [AK] If we still advanced to the next map when the mission failed, then either the countdown
4685+ // if there's still people playing, or reset the state entirely.
4686+ if ( SURVIVAL_GetState( ) == SURVS_MISSIONFAILED )
4687+ {
4688+ if ( SERVER_CalcNumNonSpectatingPlayers( MAXPLAYERS ) < 1 )
4689+ SURVIVAL_SetState( SURVS_WAITINGFORPLAYERS );
4690+ else
4691+ SURVIVAL_StartCountdown(( sv_survivalcountdowntime > 0 ? sv_survivalcountdowntime : 20 ) * TICRATE - 1 );
4692+ }
46834693 }
46844694
46854695 if ( NETWORK_InClientMode() == false )