add: allow multilanguage on hlds (fixes #173)
fix: fixed typos with 'release_editor'. (fixes #172)
This commit is contained in:
parent
9c85913a0f
commit
0432cdfef7
2 changed files with 3 additions and 6 deletions
|
|
@ -463,11 +463,8 @@ void BotConfig::loadChatConfig () {
|
||||||
void BotConfig::loadLanguageConfig () {
|
void BotConfig::loadLanguageConfig () {
|
||||||
setupMemoryFiles ();
|
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
|
return; // dedicated server will use only english translation
|
||||||
}
|
}
|
||||||
String line;
|
String line;
|
||||||
|
|
|
||||||
|
|
@ -341,7 +341,7 @@ int BotControl::cmdNode () {
|
||||||
// remote graph editing stuff
|
// remote graph editing stuff
|
||||||
if (game.isDedicated ()) {
|
if (game.isDedicated ()) {
|
||||||
addGraphCmd ("acquire_editor", "acquire_editor", "Acquires rights to edit graph on dedicated server.", &BotControl::cmdNodeAcquireEditor);
|
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))) {
|
if (commands.has (strValue (cmd))) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue