aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-07-14 23:38:24 +0100
committerGitHub <noreply@github.com>2022-07-14 23:38:24 +0100
commit85eb27362bd295a9e1560982a3369a688e13ded0 (patch)
treedabc0104a2f2f7d2aa501b356ee20c3951ecb444
parenta807348a28981d61d1007a74b3c065ce26bae6b8 (diff)
downloadNorthstarMods-85eb27362bd295a9e1560982a3369a688e13ded0.tar.gz
NorthstarMods-85eb27362bd295a9e1560982a3369a688e13ded0.zip
call InitPersistentData on client connect to mirror vanilla behaviour and clear unwanted stuff (#424)v1.9.1-rc4v1.9.1-rc3v1.9.1
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut2
1 files changed, 2 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
index 64245977..1c53167f 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -123,6 +123,8 @@ void function CodeCallback_OnClientConnectionStarted( entity player )
// playerconnected
void function CodeCallback_OnClientConnectionCompleted( entity player )
{
+ InitPersistentData( player )
+
if ( IsLobby() )
{
Lobby_OnClientConnectionCompleted( player )