• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

コミットメタ情報

リビジョン58ea7b4323b650978ac6d688add43ce223c870db (tree)
日時2021-12-01 02:08:12
作者Adam Kaminski <kaminskiadam9@gmai...>
コミッターAdam Kaminski

ログメッセージ

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

変更サマリ

差分

diff -r ffb075a80926 -r 58ea7b4323b6 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 )