aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/ui
diff options
context:
space:
mode:
authorWilliam Miller <william-millennium@hotmail.com>2024-09-11 19:24:26 -0300
committerGitHub <noreply@github.com>2024-09-12 00:24:26 +0200
commit6437c5eef53e921613946f309f51ac441e08bdf0 (patch)
tree657f4dcd62e2a185ad89c8394b2034547daf03d7 /Northstar.Client/mod/scripts/vscripts/ui
parente8ffff54bb150c73622bfd3cca0a11b024e3a44b (diff)
downloadNorthstarMods-6437c5eef53e921613946f309f51ac441e08bdf0.tar.gz
NorthstarMods-6437c5eef53e921613946f309f51ac441e08bdf0.zip
Fix mode selection menu locking all modes (#880)v1.28.1-rc1v1.28.1
Invert previously incorrect logic in check to lock gamemode.
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/menu_mode_select.nut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_mode_select.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_mode_select.nut
index 6cddee2a..109eed12 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/menu_mode_select.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_mode_select.nut
@@ -524,7 +524,7 @@ void function UpdateVisibleModes()
if( blockedModes.contains( file.sortedModes[ modeIndex ] ) )
Hud_SetLocked( button, true )
- if ( !PrivateMatch_IsValidMapModeCombo( PrivateMatch_GetSelectedMap(), mode ) )
+ if ( PrivateMatch_IsValidMapModeCombo( PrivateMatch_GetSelectedMap(), mode ) )
{
Hud_SetLocked( button, true )
SetButtonRuiText( button, mode )