aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2021-12-25 23:45:33 +0100
committerRemy Raes <raes.remy@gmail.com>2021-12-25 23:45:33 +0100
commit2dbabfcfbccb83a629a747f33ccef21889349138 (patch)
tree24d7176507553af7ac03ac54093a803a8ad06eff /Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
parente93893cc0083c94044048f920a34fb46bc448b9a (diff)
parente4faa247edaf389d4d52e3a3129af540bb19a0ac (diff)
downloadNorthstarMods-2dbabfcfbccb83a629a747f33ccef21889349138.tar.gz
NorthstarMods-2dbabfcfbccb83a629a747f33ccef21889349138.zip
Merge branch 'main' into chore/french-translations
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut3
1 files changed, 3 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
index 4b90b1a29..562f65e50 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut
@@ -80,6 +80,9 @@ void function PIN_GameStart()
void function SetGameState( int newState )
{
+ if ( newState == GetGameState() )
+ return
+
SetServerVar( "gameStateChangeTime", Time() )
SetServerVar( "gameState", newState )
svGlobal.levelEnt.Signal( "GameStateChanged" )