mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:15:31 +00:00
Fix wrong padding breaking local map for cells where the bounds center is far from the origin
This commit is contained in:
parent
a0df25c631
commit
bcdab2aeab
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,8 @@ void LocalMap::requestMap(MWWorld::Ptr::CellStore* cell,
|
|||
mBounds.merge(Vector3(c4.x, c4.y, 0));
|
||||
|
||||
// apply a little padding
|
||||
mBounds.scale ((mBounds.getSize ()+Ogre::Vector3(1000,1000,0)) / mBounds.getSize ());
|
||||
mBounds.setMinimum (mBounds.getMinimum() - Vector3(500,500,0));
|
||||
mBounds.setMaximum (mBounds.getMaximum() + Vector3(500,500,0));
|
||||
|
||||
Vector2 center(mBounds.getCenter().x, mBounds.getCenter().y);
|
||||
|
||||
|
|
Loading…
Reference in a new issue