mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Fix issue #103
This commit is contained in:
parent
393f8c7a9b
commit
68f9af376f
@ -405,8 +405,13 @@ void Creature::updateWalkingTile()
|
||||
if(newWalkingTile != m_walkingTile) {
|
||||
if(m_walkingTile)
|
||||
m_walkingTile->removeWalkingCreature(static_self_cast<Creature>());
|
||||
if(newWalkingTile)
|
||||
if(newWalkingTile) {
|
||||
newWalkingTile->addWalkingCreature(static_self_cast<Creature>());
|
||||
|
||||
// recache visible tiles in map views
|
||||
if(newWalkingTile->isEmpty())
|
||||
g_map.notificateTileUpdateToMapViews(newWalkingTile->getPosition());
|
||||
}
|
||||
m_walkingTile = newWalkingTile;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user