fix: players play time got replaced with bots play time.

fix: crlib: fixed clang-analyzer warnings.
build: removed predefined optimization flags in debug builds.
This commit is contained in:
ds 2020-10-03 16:39:09 +03:00
commit f40ca59700
11 changed files with 44 additions and 24 deletions

View file

@ -120,8 +120,8 @@ public:
using EntitySearch = Lambda <EntitySearchResult (edict_t *)>;
private:
int m_drawModels[DrawLine::Count];
int m_spawnCount[Team::Unassigned];
int m_drawModels[DrawLine::Count] { };
int m_spawnCount[Team::Unassigned] { };
// bot client command
StringArray m_botArgs;
@ -608,6 +608,21 @@ public:
++m_cursor;
}
String readString () {
if (m_buffer.length () < m_cursor) {
return "";
}
String out;
for (; m_cursor < m_buffer.length () && m_buffer[m_cursor] != kNullChar; ++m_cursor) {
out += m_buffer[m_cursor];
}
++m_cursor;
return out;
}
void shiftToEnd () {
m_cursor = m_buffer.length ();
}