fix creature draw bug
This commit is contained in:
parent
d0a5f27fcf
commit
1145eb7e42
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue