add: allow multilanguage on hlds (fixes #173)

fix: fixed typos with 'release_editor'. (fixes #172)
This commit is contained in:
ds 2020-10-08 09:40:55 +03:00
commit 0432cdfef7
2 changed files with 3 additions and 6 deletions

View file

@ -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;

View file

@ -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))) {