This commit is contained in:
Eduardo Bart 2012-10-04 19:18:48 -03:00
parent 393f8c7a9b
commit 68f9af376f
1 changed files with 6 additions and 1 deletions

View File

@ -405,8 +405,13 @@ void Creature::updateWalkingTile()
if(newWalkingTile != m_walkingTile) { if(newWalkingTile != m_walkingTile) {
if(m_walkingTile) if(m_walkingTile)
m_walkingTile->removeWalkingCreature(static_self_cast<Creature>()); m_walkingTile->removeWalkingCreature(static_self_cast<Creature>());
if(newWalkingTile) if(newWalkingTile) {
newWalkingTile->addWalkingCreature(static_self_cast<Creature>()); newWalkingTile->addWalkingCreature(static_self_cast<Creature>());
// recache visible tiles in map views
if(newWalkingTile->isEmpty())
g_map.notificateTileUpdateToMapViews(newWalkingTile->getPosition());
}
m_walkingTile = newWalkingTile; m_walkingTile = newWalkingTile;
} }
} }