model culling fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2536 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -294,7 +294,11 @@ void rendermodel(const char *mdl, int anim, int tex, float rad, const vec &o, fl
|
||||
model *m = loadmodel(mdl);
|
||||
if(!m) return;
|
||||
|
||||
if(rad > 0 && isoccluded(camera1->o.x, camera1->o.y, o.x-rad, o.y-rad, rad*2)) return;
|
||||
if(rad >= 0)
|
||||
{
|
||||
if(!rad) rad = m->radius;
|
||||
if(isoccluded(camera1->o.x, camera1->o.y, o.x-rad, o.y-rad, rad*2)) return;
|
||||
}
|
||||
|
||||
int varseed = 0;
|
||||
if(d) switch(anim&ANIM_INDEX)
|
||||
|
||||
Reference in New Issue
Block a user