aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/ui
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-03 17:31:45 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-03 17:31:45 +0000
commit0083b152b2f86ace0f0f8de4535d81b005e26d7c (patch)
treeda01fdc02949dc0f6e04a6644e298b7f3708741b /Northstar.Client/mod/scripts/vscripts/ui
parent2e34d7e7d16815fd648d3ff5c4d1f9f64d10cf9b (diff)
downloadNorthstarMods-0083b152b2f86ace0f0f8de4535d81b005e26d7c.tar.gz
NorthstarMods-0083b152b2f86ace0f0f8de4535d81b005e26d7c.zip
ensure game is fully authenticated before unlocking launch northstar button
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut5
1 files changed, 3 insertions, 2 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
index ecb34d47..e59e0e59 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
@@ -502,9 +502,10 @@ void function TryUnlockNorthstarButton()
// unlock "Launch Northstar" button until you're authed with masterserver, are allowing insecure auth, or 7.5 seconds have passed
float time = Time()
- while ( GetConVarInt( "ns_has_agreed_to_send_token" ) != NS_AGREED_TO_SEND_TOKEN )
+ while ( GetConVarInt( "ns_has_agreed_to_send_token" ) != NS_AGREED_TO_SEND_TOKEN || time + 10.0 > Time() )
{
- if ( ( NSIsMasterServerAuthenticated() && IsStryderAllowingMP() ) || GetConVarBool( "ns_auth_allow_insecure" ) )
+ Hud_SetLocked( file.fdButton, true )
+ if ( ( NSIsMasterServerAuthenticated() && IsStryderAuthenticated() ) || GetConVarBool( "ns_auth_allow_insecure" ) )
break
WaitFrame()