refactor: clang-tidy source a little

build: remove -fPIC option
This commit is contained in:
dmitry 2021-09-16 16:09:51 +03:00
commit f051fe2b99
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
13 changed files with 88 additions and 94 deletions

View file

@ -335,7 +335,7 @@ void BotConfig::loadChatterConfig () {
for (auto &sound : sounds) {
sound.trim ().trim ("\"");
float duration = game.getWaveLen (sound.chars ());
auto duration = game.getWaveLen (sound.chars ());
if (duration > 0.0f) {
m_chatter[event.code].emplace (cr::move (sound), event.repeat, duration);
@ -582,7 +582,7 @@ void BotConfig::loadDifficultyConfig () {
logger.error ("Error in difficulty config file syntax... Please correct all errors.");
continue;
}
auto key = items[0].trim ();
const auto &key = items[0].trim ();
// get our keys
if (key == "Noob") {