1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Adjust player position to ground after using travel services

This commit is contained in:
scrawl 2013-04-08 16:30:18 +02:00
parent a7de870a44
commit d0bcf83091

View File

@ -156,6 +156,7 @@ namespace MWGui
MWBase::Environment::get().getWorld()->advanceTime(time); MWBase::Environment::get().getWorld()->advanceTime(time);
} }
MWBase::Environment::get().getWorld()->moveObject(player,*cell,pos.pos[0],pos.pos[1],pos.pos[2]); MWBase::Environment::get().getWorld()->moveObject(player,*cell,pos.pos[0],pos.pos[1],pos.pos[2]);
MWWorld::Class::get(player).adjustPosition(player);
mWindowManager.removeGuiMode(GM_Travel); mWindowManager.removeGuiMode(GM_Travel);
mWindowManager.removeGuiMode(GM_Dialogue); mWindowManager.removeGuiMode(GM_Dialogue);
MWBase::Environment::get().getWorld ()->getFader ()->fadeOut(0); MWBase::Environment::get().getWorld ()->getFader ()->fadeOut(0);