aim: look at last enemy origin when just loosed focus

fix: saving bot practice took enormous amount of time when changing level on large practice database
refactor: changed random number generator usage
This commit is contained in:
jeefo 2024-04-25 15:03:39 +03:00
commit 3358168fad
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
27 changed files with 588 additions and 581 deletions

View file

@ -41,7 +41,7 @@ void GraphVistable::rebuild () {
sourceCrouch.z += -18.0f + 12.0f;
sourceStand.z += 28.0f;
}
auto end = m_sliceIndex + rg.get (250, 400);
auto end = m_sliceIndex + rg (250, 400);
if (end > m_length) {
end = m_length;
@ -122,7 +122,7 @@ void GraphVistable::rebuild () {
m_curIndex++;
}
else {
m_sliceIndex += rg.get (250, 400);
m_sliceIndex += rg (250, 400);
}
// notify host about rebuilding