agent::on_tick(): Do nothing when not placed

This commit is contained in:
Petr Baudis 2011-11-27 04:42:52 +01:00
parent a2a52f5884
commit a151a2985d

View file

@ -106,6 +106,9 @@ agent::on_action_takes(void)
void
agent::on_tick(void)
{
if (!tile)
return;
if (!dead) {
chenergy(world::sun_energy);