mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 23:40:58 +00:00
Fix issue that eric previously spotted and fixed on maps with missing textures.
This commit is contained in:
parent
66b486472b
commit
58655ebd99
1 changed files with 3 additions and 1 deletions
|
@ -3570,6 +3570,8 @@ void PScript_RecalculateSkyTris (void)
|
||||||
/*in quakespasm there are always two textures added on the end (rather than pointing to textures outside the model)*/
|
/*in quakespasm there are always two textures added on the end (rather than pointing to textures outside the model)*/
|
||||||
for (t = 0; t < m->numtextures-2; t++)
|
for (t = 0; t < m->numtextures-2; t++)
|
||||||
{
|
{
|
||||||
|
if (!m->textures[t])
|
||||||
|
continue;
|
||||||
if (!q_strcasecmp(key+8, m->textures[t]->name))
|
if (!q_strcasecmp(key+8, m->textures[t]->name))
|
||||||
remaps[t] = PScript_FindParticleType(com_token);
|
remaps[t] = PScript_FindParticleType(com_token);
|
||||||
}
|
}
|
||||||
|
@ -3580,7 +3582,7 @@ void PScript_RecalculateSkyTris (void)
|
||||||
for (t = 0; t < m->numtextures; t++)
|
for (t = 0; t < m->numtextures; t++)
|
||||||
{
|
{
|
||||||
ptype = remaps[t];
|
ptype = remaps[t];
|
||||||
if (ptype == P_INVALID)
|
if (ptype == P_INVALID && m->textures[t])
|
||||||
ptype = PScript_FindParticleType(va("tex_%s", m->textures[t]->name));
|
ptype = PScript_FindParticleType(va("tex_%s", m->textures[t]->name));
|
||||||
|
|
||||||
if (ptype >= 0)
|
if (ptype >= 0)
|
||||||
|
|
Loading…
Reference in a new issue