mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
tile::on_agent_enter(): Check for collisions
This commit is contained in:
parent
8e78efd7d8
commit
1eaf680111
2 changed files with 4 additions and 2 deletions
4
map.cc
4
map.cc
|
@ -4,10 +4,12 @@
|
|||
#include "agent.h"
|
||||
#include "map.h"
|
||||
|
||||
void
|
||||
bool
|
||||
tile::on_agent_enter(class agent *a)
|
||||
{
|
||||
if (agent) return false;
|
||||
agent = a;
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue