From 53194543e43f8a645ba83ddb464028ba0c3b9d70 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Tue, 29 Jun 2021 23:52:45 +0100 Subject: fix lts spawn bugs and some crashes --- bobthebob.testing/scripts/vscripts/ui/menu_mode_select.nut | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bobthebob.testing/scripts/vscripts') diff --git a/bobthebob.testing/scripts/vscripts/ui/menu_mode_select.nut b/bobthebob.testing/scripts/vscripts/ui/menu_mode_select.nut index 4e0ecef5..b6bd6d38 100644 --- a/bobthebob.testing/scripts/vscripts/ui/menu_mode_select.nut +++ b/bobthebob.testing/scripts/vscripts/ui/menu_mode_select.nut @@ -102,16 +102,14 @@ void function ModeButton_Click( var button ) if ( Hud_IsLocked( button ) ) return - int mapID = int( Hud_GetScriptID( button ) ) + ( file.currentModePage * MODES_PER_PAGE ) - - var menu = GetMenu( "MapsMenu" ) + int modeID = int( Hud_GetScriptID( button ) ) + ( file.currentModePage * MODES_PER_PAGE ) array modesArray = GetPrivateMatchModes() string modeName = modesArray[mapID] // on modded servers set us to the first map for that mode automatically // need this for coliseum mainly which is literally impossible to select without this - if ( IsNorthstarServer() && !PrivateMatch_IsValidMapModeCombo( PrivateMatch_GetSelectedMap(), modesArray[ mapID ] ) ) + if ( IsNorthstarServer() && !PrivateMatch_IsValidMapModeCombo( PrivateMatch_GetSelectedMap(), modesArray[ modeID ] ) ) ClientCommand( "SetCustomMap " + GetPrivateMatchMapsForMode( modeName )[ 0 ] ) // set it -- cgit v1.2.3