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:
parent
5170bb9bcf
commit
f40ca59700
11 changed files with 44 additions and 24 deletions
19
inc/engine.h
19
inc/engine.h
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ public:
|
|||
int getHumansCount (bool ignoreSpectators = false);
|
||||
int getAliveHumansCount ();
|
||||
|
||||
float getConnectTime (int botId, float original);
|
||||
float getConnectTime (StringRef name, float original);
|
||||
float getAverageTeamKPD (bool calcForBots);
|
||||
|
||||
void setBombPlanted (bool isPlanted);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue