diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-22 18:24:50 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-22 18:24:50 +0000 |
commit | 5aa090003b6c47a4d10f11975d7f22a2827956b0 (patch) | |
tree | 1e43936e2ca3738c24559b6da34aa4525b833623 /code/renderer | |
parent | 97a54acc5cd073c10c61b21291088bb5716aae32 (diff) | |
download | ioquake3-aero-5aa090003b6c47a4d10f11975d7f22a2827956b0.tar.gz ioquake3-aero-5aa090003b6c47a4d10f11975d7f22a2827956b0.zip |
Fix prohibits illegal downloading of id PK3 files from servers. That bug is hit by *every* official server release from ID.
git-svn-id: svn://svn.icculus.org/quake3/trunk@718 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/renderer')
-rw-r--r-- | code/renderer/tr_flares.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/renderer/tr_flares.c b/code/renderer/tr_flares.c index 0779e48..89a959c 100644 --- a/code/renderer/tr_flares.c +++ b/code/renderer/tr_flares.c @@ -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; } |