fix: logos config not initialized (resolves #691)
bot: make sure rescue zone icon blinking to consider bot reached rescue zone when escorting hostages (ref #688) bot: remove hardcoded radio communication randoms, so they're now depends on bots personality refactor: some refactoring of code
This commit is contained in:
parent
d6d76e136d
commit
6dfb09f110
26 changed files with 180 additions and 141 deletions
|
|
@ -395,7 +395,7 @@ bool FloydWarshallAlgo::load () {
|
|||
return true;
|
||||
}
|
||||
|
||||
void FloydWarshallAlgo::save () {
|
||||
void FloydWarshallAlgo::save () const {
|
||||
if (!m_length) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -448,7 +448,7 @@ bool DijkstraAlgo::find (int srcIndex, int destIndex, NodeAdderFn onAddedNode, i
|
|||
m_distance[srcIndex] = 0;
|
||||
|
||||
while (!m_queue.empty ()) {
|
||||
auto route = m_queue.pop ();
|
||||
const auto &route = m_queue.pop ();
|
||||
auto current = route.second;
|
||||
|
||||
// finished search
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue