]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
culling: fix culling of rotating entities... might help with greatwall bug?
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 09:44:06 +0000 (09:44 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 09:44:06 +0000 (09:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9357 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index bcd38766ee403abfe880e9bb51a3740fddb2498e..0f2ecc49f862e290adfb0456ae6036e108f9e758 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1239,7 +1239,7 @@ static qboolean SV_PrepareEntityForSending (prvm_edict_t *ent, entity_state_t *c
                        VectorMA(cs->origin, scale, model->rotatedmins, cullmins);
                        VectorMA(cs->origin, scale, model->rotatedmaxs, cullmaxs);
                }
-               else if (cs->angles[1])
+               else if (cs->angles[1] || ((effects | model->effects) & EF_ROTATE))
                {
                        VectorMA(cs->origin, scale, model->yawmins, cullmins);
                        VectorMA(cs->origin, scale, model->yawmaxs, cullmaxs);