Skip to content

Commit 4f76562

Browse files
committed
fix stranded spawn showing up in pre-game
1 parent a8eb62a commit 4f76562

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/server/tf/tf_player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,7 @@ int CTFPlayer::CheckStrandedSpawn(void)
23492349
}
23502350

23512351
// or during pre-match / countdown
2352-
if ( TFGameRules()->BInMatchStartCountdown() || gpGlobals->curtime < TFGameRules()->GetPreroundCountdownTime() || TFGameRules()->State_Get() <= GR_STATE_PREROUND )
2352+
if ( !TFGameRules()->IsInPlay() || gpGlobals->curtime < TFGameRules()->GetPreroundCountdownTime() )
23532353
{
23542354
return STRANDED_SPAWN_DETACHED;
23552355
}

0 commit comments

Comments
 (0)