Skip to content

Commit

Permalink
Fix TFFA from crashing when a player leaves during the intro sequence (
Browse files Browse the repository at this point in the history
…#434)

* Fix TFFA from crashing when a player leaves during the intro sequence
* Fix Formatting
  • Loading branch information
x3Karma authored Jul 21, 2022
1 parent d585bac commit ef30d11
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ void function PlayerWatchesTFFAIntroIntermissionCam( entity player )

wait TFFAIntroLength

if ( !IsValid( player ) ) // if player leaves during the intro sequence
return

RespawnAsTitan( player, false )
TryGameModeAnnouncement( player )
}
Expand All @@ -75,4 +78,4 @@ void function AddTeamScoreForPlayerKilled( entity victim, entity attacker, var d
// why isn't this PGS_SCORE? odd game
attacker.AddToPlayerGameStat( PGS_ASSAULT_SCORE, 1 )
}
}
}

0 comments on commit ef30d11

Please sign in to comment.