mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 04:50:42 +00:00
- fixed issue with empty voxel slots.
This commit is contained in:
parent
13bbf0a4f9
commit
463dbc4c4f
1 changed files with 5 additions and 2 deletions
|
@ -206,10 +206,13 @@ void PolymostProcessVoxels(void)
|
||||||
for (int i = 0; i < MAXVOXELS; i++)
|
for (int i = 0; i < MAXVOXELS; i++)
|
||||||
{
|
{
|
||||||
int lumpnum = voxlumps[i];
|
int lumpnum = voxlumps[i];
|
||||||
if (lumpnum >= 0)
|
if (lumpnum > 0)
|
||||||
{
|
{
|
||||||
voxmodels[i] = voxload(lumpnum);
|
voxmodels[i] = voxload(lumpnum);
|
||||||
|
if (voxmodels[i])
|
||||||
voxmodels[i]->scale = voxscale[i] * (1.f / 65536.f);
|
voxmodels[i]->scale = voxscale[i] * (1.f / 65536.f);
|
||||||
|
else
|
||||||
|
Printf("Unable to load voxel from %s\n", fileSystem.GetFileFullPath(lumpnum));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue