From 327fa13d54ce1384b4d04ad814a5b88a2609f143 Mon Sep 17 00:00:00 2001 From: Garux Date: Wed, 21 Feb 2018 17:15:10 +0300 Subject: [PATCH] add killconnect command only for mGameType=nexuiz (.game type="nexuiz"); was confusing bindlist readers --- radiant/entity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radiant/entity.cpp b/radiant/entity.cpp index 784cd762..6b1a7d1b 100644 --- a/radiant/entity.cpp +++ b/radiant/entity.cpp @@ -736,7 +736,8 @@ void Entity_Construct(){ GlobalCommands_insert( "EntityColor", FreeCaller(), Accelerator( 'K' ) ); GlobalCommands_insert( "NormalizeColor", FreeCaller() ); GlobalCommands_insert( "ConnectSelection", FreeCaller(), Accelerator( 'K', (GdkModifierType)GDK_CONTROL_MASK ) ); - GlobalCommands_insert( "KillConnectSelection", FreeCaller(), Accelerator( 'K', (GdkModifierType)( GDK_SHIFT_MASK ) ) ); + if ( g_pGameDescription->mGameType == "nexuiz" ) + GlobalCommands_insert( "KillConnectSelection", FreeCaller(), Accelerator( 'K', (GdkModifierType)( GDK_SHIFT_MASK ) ) ); GlobalCommands_insert( "RegroupSelection", FreeCaller() ); GlobalCommands_insert( "UngroupSelection", FreeCaller() );