bot: benefit from sse4.x intrinsics if cpu capable
bot: speed some string functions if sse 4.x available build: allow to build with native optimizations by settings -Dnative=true
This commit is contained in:
parent
7f07817c52
commit
0b8cd9a01c
18 changed files with 133 additions and 89 deletions
|
|
@ -44,14 +44,14 @@ void BotSupport::humanizePlayerName (String &playerName) {
|
|||
}
|
||||
|
||||
// sometimes switch name to lower characters, only valid for the english languge
|
||||
if (rg.chance (8) && strcmp (cv_language.str (), "en") == 0) {
|
||||
if (rg.chance (8) && cr::strcmp (cv_language.str (), "en") == 0) {
|
||||
playerName.lowercase ();
|
||||
}
|
||||
}
|
||||
|
||||
void BotSupport::addChatErrors (String &line) {
|
||||
// sometimes switch name to lower characters, only valid for the english languge
|
||||
if (rg.chance (8) && strcmp (cv_language.str (), "en") == 0) {
|
||||
if (rg.chance (8) && cr::strcmp (cv_language.str (), "en") == 0) {
|
||||
line.lowercase ();
|
||||
}
|
||||
auto length = static_cast <int32_t> (line.length ());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue