mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Fix corruption issue when the initial scenewidget is closed before subsequent ones. Also place the label closer to the terrain height at the center of the cell, should reduce the perception of the label jumping around too much.
This commit is contained in:
parent
961867e39f
commit
57b337d368
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ void OverlayMask::preViewportUpdate(const Ogre::RenderTargetViewportEvent &event
|
|||
it.hasMoreElements();)
|
||||
{
|
||||
Ogre::OverlayContainer* container = it.getNext();
|
||||
container->hide();
|
||||
if(container) container->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
|||
height);
|
||||
manual-> position(ESM::Land::REAL_SIZE * iter->getX() + ESM::Land::REAL_SIZE/2,
|
||||
ESM::Land::REAL_SIZE * iter->getY() + ESM::Land::REAL_SIZE/2,
|
||||
height+2000); // FIXME: config setting
|
||||
height+20); // FIXME: config setting
|
||||
manual->end();
|
||||
manual->setBoundingBox(Ogre::AxisAlignedBox(
|
||||
ESM::Land::REAL_SIZE * iter->getX() + ESM::Land::REAL_SIZE/2,
|
||||
|
@ -144,7 +144,7 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
|||
height,
|
||||
ESM::Land::REAL_SIZE * iter->getX() + ESM::Land::REAL_SIZE/2,
|
||||
ESM::Land::REAL_SIZE * iter->getY() + ESM::Land::REAL_SIZE/2,
|
||||
height+2000));
|
||||
height+20));
|
||||
getSceneManager()->getRootSceneNode()->createChildSceneNode()->attachObject(manual);
|
||||
manual->setVisible(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue