mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Move print_map() to the end of the tick
This commit is contained in:
parent
6a3d9b2e4a
commit
d7ed0bc6ce
1 changed files with 2 additions and 2 deletions
4
main.cc
4
main.cc
|
@ -42,8 +42,6 @@ main(int argc, char *argv[])
|
||||||
class agent *agent = NULL;
|
class agent *agent = NULL;
|
||||||
while (true) {
|
while (true) {
|
||||||
std::cout << "tick " << tick_id << '\n';
|
std::cout << "tick " << tick_id << '\n';
|
||||||
map.print_map();
|
|
||||||
std::cout << '\n';
|
|
||||||
|
|
||||||
if (agent) {
|
if (agent) {
|
||||||
agent->on_tick();
|
agent->on_tick();
|
||||||
|
@ -61,6 +59,8 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
map.print_map();
|
||||||
|
std::cout << '\n';
|
||||||
usleep(1000000);
|
usleep(1000000);
|
||||||
tick_id++;
|
tick_id++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue