fix: startup on hlds_l 3111e (still needs nosmid)

build: add option to build bot without any smid instructions
refactor: fix static analyzer warnings
crlib: update submodule (fix double anglevectors call)
This commit is contained in:
jeefo 2024-10-27 20:51:37 +03:00
commit c7c5e0eaf9
No known key found for this signature in database
GPG key ID: D696786B81B667C8
14 changed files with 92 additions and 70 deletions

View file

@ -662,7 +662,7 @@ void ConVar::setPrefix (StringRef name, int32_t type) {
void Game::checkCvarsBounds () {
for (const auto &var : m_cvars) {
if (!var.self->ptr) {
if (!var.self || !var.self->ptr) {
continue;
}
@ -1143,8 +1143,12 @@ void Game::printBotVersion () {
botRuntimeFlags.push ("HL25");
}
if (botRuntimeFlags.empty ()) {
botRuntimeFlags.push ("None");
}
// print if we're using sse 4.x instructions
if (cpuflags.sse41 || cpuflags.sse42 || cpuflags.neon) {
if (plat.simd && (cpuflags.sse41 || cpuflags.sse42 || cpuflags.neon)) {
Array <String> simdLevels {};
if (cpuflags.sse41) {