mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 01:15:33 +00:00
Remove unnecessary hack
This commit is contained in:
parent
57d686131e
commit
2f5beb8853
1 changed files with 1 additions and 12 deletions
|
@ -201,17 +201,6 @@ namespace MWMechanics
|
||||||
stopWalking(actor, storage);
|
stopWalking(actor, storage);
|
||||||
currentCell = actor.getCell();
|
currentCell = actor.getCell();
|
||||||
storage.mPopulateAvailableNodes = true;
|
storage.mPopulateAvailableNodes = true;
|
||||||
}
|
|
||||||
|
|
||||||
// Here we should reset an initial position, if a current cell was REALLY changed
|
|
||||||
// We do not store AiStorage in a savegame, so cellChange is not help us in this case
|
|
||||||
// TODO: find a more simple and fast solution, or do not store the mInitialActorPosition at all
|
|
||||||
if (mStoredInitialActorPosition)
|
|
||||||
{
|
|
||||||
int cx,cy;
|
|
||||||
MWBase::Environment::get().getWorld()->positionToIndex(mInitialActorPosition.x(),mInitialActorPosition.y(),cx,cy);
|
|
||||||
MWWorld::CellStore* cell = MWBase::Environment::get().getWorld()->getExterior(cx,cy);
|
|
||||||
if (cell != currentCell)
|
|
||||||
mStoredInitialActorPosition = false;
|
mStoredInitialActorPosition = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue