tile::on_agent_enter(): Check for collisions

This commit is contained in:
Petr Baudis 2011-11-26 19:40:05 +01:00
parent 8e78efd7d8
commit 1eaf680111
2 changed files with 4 additions and 2 deletions

4
map.cc
View file

@ -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