mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Fix handling in getBlendmaps when the chunk is >1 ESM::Cell
This commit is contained in:
parent
b384087e28
commit
81c9853fe9
@ -324,7 +324,12 @@ namespace ESMTerrain
|
||||
--cellX;
|
||||
x += ESM::Land::LAND_TEXTURE_SIZE;
|
||||
}
|
||||
if (y >= ESM::Land::LAND_TEXTURE_SIZE) // Y appears to be wrapped from the other side because why the hell not?
|
||||
while (x >= ESM::Land::LAND_TEXTURE_SIZE)
|
||||
{
|
||||
++cellX;
|
||||
x -= ESM::Land::LAND_TEXTURE_SIZE;
|
||||
}
|
||||
while (y >= ESM::Land::LAND_TEXTURE_SIZE) // Y appears to be wrapped from the other side because why the hell not?
|
||||
{
|
||||
++cellY;
|
||||
y -= ESM::Land::LAND_TEXTURE_SIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user