fix player update

This commit is contained in:
greye 2012-07-30 23:54:26 +04:00
parent d6150b7482
commit 37990b5133

View file

@ -555,6 +555,7 @@ namespace MWWorld
// a bit ugly
if (ptr == mPlayer->getPlayer()) {
currCell = mWorldScene->getCurrentCell();
haveToMove = true;
} else {
currCell = ptr.getCell();
}
@ -570,7 +571,6 @@ namespace MWWorld
{
if (ptr == mPlayer->getPlayer()) {
mWorldScene->changeCell(cellX, cellY, pos, false);
haveToMove = true;
} else {
CellStore *newCell =
MWBase::Environment::get().getWorld()->getExterior(cellX, cellY);