projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b76d67e
)
don't crash on NULL model in entity culling
author
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Feb 2003 01:15:06 +0000
(
01:15
+0000)
committer
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Feb 2003 01:15:06 +0000
(
01:15
+0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2737
d7cf8633
-e32d-0410-b094-
e92efae38249
gl_rmain.c
patch
|
blob
|
history
diff --git
a/gl_rmain.c
b/gl_rmain.c
index 9ccd05c242dffc3f92ae90fbc058db16840bc887..448d40542463a9b9bae689719ae477776e38aa5a 100644
(file)
--- a/
gl_rmain.c
+++ b/
gl_rmain.c
@@
-551,7
+551,7
@@
static void R_MarkEntities (void)
R_LerpAnimation(ent);
R_UpdateEntLights(ent);
if ((chase_active.integer || !(ent->flags & RENDER_EXTERIORMODEL))
- && !VIS_CullSphere(ent->origin,
ent->model->radius
* ent->scale)
+ && !VIS_CullSphere(ent->origin,
(ent->model != NULL ? ent->model->radius : 16)
* ent->scale)
&& !VIS_CullBox(ent->mins, ent->maxs))
{
ent->visframe = r_framecount;