mirror of
https://github.com/edubart/otclient.git
synced 2025-10-13 19:14:56 +02:00
fix creature draw bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user