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

@ -581,6 +581,7 @@ void Bot::checkTerrain (float movedDistance, const Vector &dirNormal) {
do {
sorting = false;
for (i = 0; i < 3; ++i) {
if (state[i + kMaxCollideMoves] < state[i + kMaxCollideMoves + 1]) {
cr::swap (state[i], state[i + 1]);
@ -591,8 +592,8 @@ void Bot::checkTerrain (float movedDistance, const Vector &dirNormal) {
}
} while (sorting);
for (i = 0; i < kMaxCollideMoves; ++i) {
m_collideMoves[i] = state[i];
for (int j = 0; j < kMaxCollideMoves; ++j) {
m_collideMoves[j] = state[j];
}
m_collideTime = game.time ();