aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLightBlueCube <115393812+LightBlueCube@users.noreply.github.com>2024-09-03 07:49:15 +0800
committerGitHub <noreply@github.com>2024-09-03 01:49:15 +0200
commit34e5b52282a7d3619e032a928d16058cc7044678 (patch)
treedbe3228785b19cfe2f7356bdd5b35e1ecebb8c34
parent957f6a3ac6ff0cca3168e15a362cee80c8e9dcf0 (diff)
downloadNorthstarMods-34e5b52282a7d3619e032a928d16058cc7044678.tar.gz
NorthstarMods-34e5b52282a7d3619e032a928d16058cc7044678.zip
Prevent rare crash when player disconnects during War Games intro (#856)v1.27.7-rc3v1.27.7
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut4
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
index 8d859ba63..376c5b7c3 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
@@ -231,6 +231,8 @@ void function OnPrematchStart()
void function PlayerWatchesWargamesIntro( entity player )
{
+ player.EndSignal( "OnDestroy" )
+
if ( IsAlive( player ) )
player.Die()
@@ -253,8 +255,6 @@ void function PlayerWatchesWargamesIntro( entity player )
// we need to wait a frame if we killed ourselves to spawn into this, so just easier to do it all the time to remove any weirdness
WaitFrame()
-
- player.EndSignal( "OnDestroy" )
player.EndSignal( "OnDeath" )
int factionTeam = ConvertPlayerFactionToIMCOrMilitiaTeam( player )