fix creature draw bug

This commit is contained in:
Eduardo Bart 2012-02-09 05:52:52 -02:00
parent d0a5f27fcf
commit 1145eb7e42
1 changed files with 2 additions and 2 deletions

View File

@ -174,6 +174,8 @@ bool Map::removeThing(const ThingPtr& thing)
if(!thing)
return false;
notificateTileUpdateToMapViews(thing->getPosition());
if(MissilePtr missile = thing->asMissile()) {
int z = missile->getPosition().z;
auto it = std::find(m_floorMissiles[z].begin(), m_floorMissiles[z].end(), missile);
@ -196,8 +198,6 @@ bool Map::removeThing(const ThingPtr& thing)
} else if(TilePtr tile = thing->getTile())
return tile->removeThing(thing);
notificateTileUpdateToMapViews(thing->getPosition());
return false;
}