forked from teamnwah/openmw-tes3coop
Z-up conversion: fix player arrow direction on global map
This commit is contained in:
parent
cd68012498
commit
b9912a19e0
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ void MapWindow::globalMapUpdatePlayer ()
|
|||
{
|
||||
Ogre::Vector3 pos = MWBase::Environment::get().getWorld ()->getPlayer ().getPlayer().getRefData ().getBaseNode ()->_getDerivedPosition ();
|
||||
Ogre::Quaternion orient = MWBase::Environment::get().getWorld ()->getPlayer ().getPlayer().getRefData ().getBaseNode ()->_getDerivedOrientation ();
|
||||
Ogre::Vector2 dir (orient.yAxis ().x, -orient.yAxis().z);
|
||||
Ogre::Vector2 dir (orient.yAxis ().x, orient.yAxis().y);
|
||||
|
||||
float worldX, worldY;
|
||||
mGlobalMapRender->worldPosToImageSpace (pos.x, pos.y, worldX, worldY);
|
||||
|
|
Loading…
Reference in a new issue