mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-01 04:20:20 +00:00
Forgot to change initTerrainTextures
This commit is contained in:
parent
76e538c22a
commit
3f7daa4884
@ -246,9 +246,9 @@ namespace MWRender
|
|||||||
//cells which may lead to inconsistent results when shading between cells
|
//cells which may lead to inconsistent results when shading between cells
|
||||||
int num = MWBase::Environment::get().getWorld()->getStore().get<ESM::LandTexture>().getSize(plugin);
|
int num = MWBase::Environment::get().getWorld()->getStore().get<ESM::LandTexture>().getSize(plugin);
|
||||||
std::set<uint16_t> ltexIndexes;
|
std::set<uint16_t> ltexIndexes;
|
||||||
for ( int y = fromY - 1; y < fromY + size + 1; y++ )
|
for ( int y = fromY; y < fromY + size + 1; y++ )
|
||||||
{
|
{
|
||||||
for ( int x = fromX - 1; x < fromX + size + 1; x++ )
|
for ( int x = fromX - 1; x < fromX + size; x++ ) // NB we wrap X from the other side because Y is reversed
|
||||||
{
|
{
|
||||||
int idx = getLtexIndexAt(cellX, cellY, x, y);
|
int idx = getLtexIndexAt(cellX, cellY, x, y);
|
||||||
// This is a quick hack to prevent the program from trying to fetch textures
|
// This is a quick hack to prevent the program from trying to fetch textures
|
||||||
|
Loading…
x
Reference in New Issue
Block a user