Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

Commit 66406da

Browse files
author
F1F7Y
committed
Fix Double DeRegister call
1 parent b43fcef commit 66406da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ global function ThreadedAuthAndConnectToServer
55
// Code is a mess rn, will clean up
66

77
const int BUTTONS_PER_PAGE = 15
8-
const int DOUBLE_CLICK_TIME_MS = 100
8+
const int DOUBLE_CLICK_TIME_MS = 40
99

1010
struct {
1111
bool hideFull = false
@@ -714,7 +714,10 @@ void function OnServerSelected( var button )
714714
}
715715

716716
if ( NSServerRequiresPassword( serverIndex ) )
717+
{
718+
OnCloseServerBrowserMenu()
717719
AdvanceMenu( GetMenu( "ConnectWithPasswordMenu" ) )
720+
}
718721
else
719722
thread ThreadedAuthAndConnectToServer()
720723
}

0 commit comments

Comments
 (0)