mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-30 20:51:22 +00:00
- fixed sky tiling.
This commit is contained in:
parent
0e89bffabd
commit
e3103fff02
1 changed files with 3 additions and 3 deletions
|
@ -101,9 +101,9 @@ SkyDefinition getSky(int tilenum)
|
|||
int w = tileWidth(tilenum);
|
||||
if (result.lognumtiles == 0 || w >= 256)
|
||||
{
|
||||
int bits = sizeToBits(w);
|
||||
result.lognumtiles = 11 - bits;
|
||||
if ((1 << bits) < w) result.lognumtiles--; // round down if not a power of two
|
||||
if (w < 512) result.lognumtiles = 2;
|
||||
else if (w < 1024) result.lognumtiles = 1;
|
||||
else result.lognumtiles = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue