aboutsummaryrefslogtreecommitdiff
path: root/bobthebob.testing/scripts
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-06-29 23:52:45 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-06-29 23:52:45 +0100
commit53194543e43f8a645ba83ddb464028ba0c3b9d70 (patch)
treebee4f045e4e0dba4ca07fef04e2600b2c897c3c1 /bobthebob.testing/scripts
parent31c8a052e8f3cdccedb7f6f8d2bd11678189001a (diff)
downloadNorthstarMods-53194543e43f8a645ba83ddb464028ba0c3b9d70.tar.gz
NorthstarMods-53194543e43f8a645ba83ddb464028ba0c3b9d70.zip
fix lts spawn bugs and some crashes
Diffstat (limited to 'bobthebob.testing/scripts')
-rw-r--r--bobthebob.testing/scripts/vscripts/ui/menu_mode_select.nut6
1 files changed, 2 insertions, 4 deletions
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<string> 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