From f698534b79b33e0a4700f8cfef9eae0996a8cf03 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 31 Aug 2000 05:10:50 +0000 Subject: [PATCH] gl_part.c: do the GL_BLEND thing for R_UpdateFires. Fires just don't look so good without it :/ model.c: correct some "spelling" mistakes. --- source/gl_part.c | 2 ++ source/model.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/gl_part.c b/source/gl_part.c index 31a945f..16b4943 100644 --- a/source/gl_part.c +++ b/source/gl_part.c @@ -340,6 +340,7 @@ R_UpdateFires (void) glDepthMask (0); glDisable (GL_TEXTURE_2D); glShadeModel (GL_SMOOTH); + glEnable (GL_BLEND); glBlendFunc (GL_ONE, GL_ONE); f = r_fires; @@ -352,6 +353,7 @@ R_UpdateFires (void) } glColor3f (1.0, 1.0, 1.0); + glDisable (GL_BLEND); glEnable (GL_TEXTURE_2D); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glDepthMask (1); diff --git a/source/model.c b/source/model.c index 4e9cff1..c3960d4 100644 --- a/source/model.c +++ b/source/model.c @@ -85,7 +85,7 @@ mleaf_t *Mod_PointInLeaf (vec3_t p, model_t *model) if (node->contents < 0) return (mleaf_t *)node; plane = node->plane; - d = DotProduct (p,plane->normal) - plane->dist; + d = DotProduct (p, plane->normal) - plane->dist; if (d > 0) node = node->children[0]; else @@ -175,7 +175,7 @@ model_t *Mod_FindName (char *name) model_t *mod; if (!name[0]) - Sys_Error ("Mod_ForName: NULL name"); + Sys_Error ("Mod_FindName: NULL name"); // // search the currently loaded models @@ -228,7 +228,7 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash) if (!buf) { if (crash) - Sys_Error ("Mod_NumForName: %s not found", mod->name); + Sys_Error ("Mod_LoadModel: %s not found", mod->name); return NULL; }