aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorWilliam Miller <william-millennium@hotmail.com>2024-07-12 17:45:49 -0300
committerGitHub <noreply@github.com>2024-07-12 22:45:49 +0200
commitf586107e62dc0dfa09f1b08cbf418d31d0346886 (patch)
treec0a8d2db3e0ebf6c23801b5e2460e2d3c0873720 /Northstar.CustomServers/mod/scripts
parent52e007ac0634ee5dd9376bd82ae76af6fd5f44d7 (diff)
downloadNorthstarMods-f586107e62dc0dfa09f1b08cbf418d31d0346886.tar.gz
NorthstarMods-f586107e62dc0dfa09f1b08cbf418d31d0346886.zip
Change `IsValid()` check to `EndSignal()` (#820)v1.26.3-rc3v1.26.3
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut5
1 files changed, 2 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut
index ffefc3b4..016097f2 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut
@@ -65,10 +65,9 @@ void function SetupPlayerMenuChallenges( entity player )
void function SetupChallenges_Threaded( entity player )
{
+ player.EndSignal( "OnDestroy" )
+
WaitFrame()
-
- if ( !IsValid( player ) )
- return
Remote_CallFunction_UI( player, "SCB_SetCompleteMeritState", 0 )
Remote_CallFunction_UI( player, "SCB_SetEvacMeritState", 4 ) //4 tells RUI to hide it