mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +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);
|
||||||
voxmodels[i]->scale = voxscale[i] * (1.f / 65536.f);
|
if (voxmodels[i])
|
||||||
|
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