Fix prohibits illegal downloading of id PK3 files from servers. That bug is hit by *every* official server release from ID.

This commit is contained in:
Thilo Schulz committed 2006-04-22 18:24:50 +00:00
1 parent ef51968654
commit 40d5eee8ef
2 files changed
+9 -2

No files matched your search

+2 -2
View File
@@ -354,7 +354,7 @@ void RB_RenderFlare( flare_t *f ) {
VectorScale(f->color, f->drawIntensity * tr.identityLight * intensity, color);
// Calculations for fogging
if(f->fogNum < tr.world->numfogs)
if(tr.world && f->fogNum < tr.world->numfogs)
{
tess.numVertexes = 1;
VectorCopy(f->origin, tess.xyz[0]);
@@ -363,7 +363,7 @@ void RB_RenderFlare( flare_t *f ) {
RB_CalcModulateColorsByFog(fogFactors);
// We don't need to render the flare if colors are 0 anyways.
if(!fogFactors[0] && !fogFactors[1] && !fogFactors[2])
if(!(fogFactors[0] || fogFactors[1] || fogFactors[2]))
return;
}