mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-03 02:13:35 +02:00
Correctly number new agents
This commit is contained in:
parent
1a9dcce608
commit
9c746310de
1 changed files with 1 additions and 1 deletions
2
main.cc
2
main.cc
|
@ -70,7 +70,7 @@ next_agent:
|
||||||
do {
|
do {
|
||||||
agentpos = &map.tile_at(random() % map.w, random() % map.h);
|
agentpos = &map.tile_at(random() % map.w, random() % map.h);
|
||||||
} while (agentpos->agent);
|
} while (agentpos->agent);
|
||||||
agents.push_back(new class agent(0, *agentpos, conn));
|
agents.push_back(new class agent(agents.size(), *agentpos, conn));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Run on_tick everywhere. */
|
/* Run on_tick everywhere. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue