cfg: updated yapb.cfg to reflect changes.

cfg: made yb_quota 9 by default.
linux: fixed bots connection times remains static on linux or osx.
crlib: fix security issues.
This commit is contained in:
ds 2020-10-04 00:54:34 +03:00
commit 30a112fd71
10 changed files with 110 additions and 54 deletions

View file

@ -38,14 +38,12 @@ void BotConfig::loadConfigs () {
loadDifficultyConfig ();
}
void BotConfig::loadMainConfig () {
void BotConfig::loadMainConfig (bool isFirstLoad) {
if (game.is (GameFlags::Legacy) && !game.is (GameFlags::Xash3D)) {
util.setNeedForWelcome (true);
}
setupMemoryFiles ();
static bool firstLoad = true;
auto needsToIgnoreVar = [](StringArray &list, const char *needle) {
for (const auto &var : list) {
if (var == needle) {
@ -66,7 +64,7 @@ void BotConfig::loadMainConfig () {
continue;
}
if (firstLoad) {
if (isFirstLoad) {
game.serverCommand (line.chars ());
continue;
}
@ -104,7 +102,6 @@ void BotConfig::loadMainConfig () {
}
file.close ();
}
firstLoad = false;
// android is abit hard to play, lower the difficulty by default
if (plat.android && cv_difficulty.int_ () > 3) {