]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_decals.c
more thorough checking of 'this should never happen' cases
[xonotic/darkplaces.git] / cl_decals.c
index 9fe650e950b8bd0852d16c767771e794c43b77c2..5bea3dec6ae0bbbd40b6834a69dd65828ee0e42c 100644 (file)
@@ -225,7 +225,7 @@ void CL_UpdateDecals (void)
                if (p->tex == 0)
                        continue;
 
-               if (p->ent && p->ent->visframe == r_framecount && p->ent->model != p->model)
+               if (p->ent && p->ent->visframe == r_framecount && (p->ent->model != p->model || p->ent->model->type != mod_brush))
                {
                        p->tex = 0;
                        continue;