mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Now, agents can disappear after action_takes too
This commit is contained in:
parent
a40cd4e87c
commit
ded047fb40
1 changed files with 1 additions and 0 deletions
1
main.cc
1
main.cc
|
@ -96,6 +96,7 @@ main(int argc, char *argv[])
|
|||
|
||||
for (std::list<class agent *>::iterator agent = agents.begin(); agent != agents.end(); agent++)
|
||||
(*agent)->on_action_takes();
|
||||
drop_agents(); /* Some agents might have died. */
|
||||
|
||||
/* Run on_tick everywhere. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue