From 0432cdfef7b99d55b4b730b998093e0ffee50b1f Mon Sep 17 00:00:00 2001 From: ds Date: Thu, 8 Oct 2020 09:40:55 +0300 Subject: [PATCH] add: allow multilanguage on hlds (fixes #173) fix: fixed typos with 'release_editor'. (fixes #172) --- src/config.cpp | 7 ++----- src/control.cpp | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 6634fc1..0c891c6 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -463,11 +463,8 @@ void BotConfig::loadChatConfig () { void BotConfig::loadLanguageConfig () { setupMemoryFiles (); - if (game.isDedicated () || game.is (GameFlags::Legacy)) { - - if (game.is (GameFlags::Legacy)) { - logger.message ("Bots multilingual system disabled, due to your Counter-Strike version!"); - } + if (game.is (GameFlags::Legacy)) { + logger.message ("Bots multilingual system disabled, due to your Counter-Strike version!"); return; // dedicated server will use only english translation } String line; diff --git a/src/control.cpp b/src/control.cpp index e55ff4e..35be195 100644 --- a/src/control.cpp +++ b/src/control.cpp @@ -341,7 +341,7 @@ int BotControl::cmdNode () { // remote graph editing stuff if (game.isDedicated ()) { addGraphCmd ("acquire_editor", "acquire_editor", "Acquires rights to edit graph on dedicated server.", &BotControl::cmdNodeAcquireEditor); - addGraphCmd ("release_editor", "acquire_editor", "Releases graph editing rights.", &BotControl::cmdNodeAcquireEditor); + addGraphCmd ("release_editor", "acquire_editor", "Releases graph editing rights.", &BotControl::cmdNodeReleaseEditor); } } if (commands.has (strValue (cmd))) {