]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
reverse pitch direction on PFLAGS_FULLDYNAMIC light entities to match tenebrae
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Apr 2004 02:20:09 +0000 (02:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 10 Apr 2004 02:20:09 +0000 (02:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4092 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 511aa1be86b1e65d0b70bfdcd88a2519739e26a4..70b9986f27903cb8925b34e44b6cc2307b2dddb0 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -617,7 +617,8 @@ void CL_LinkNetworkEntity(entity_t *e)
                if (e->render.model)
                {
                        Mod_CheckLoaded(e->render.model);
-                       if (e->render.model->type == mod_alias || e->render.model->type == mod_sprite)
+                       // if model is alias, sprite, or this is a tenebrae-like dlight, reverse pitch direction
+                       if (e->render.model->type == mod_alias || e->render.model->type == mod_sprite || (e->state_current.lightpflags & PFLAGS_FULLDYNAMIC))
                                angles[0] = -angles[0];
                        if ((e->render.model->flags & EF_ROTATE) && (!e->state_current.tagentity && !(e->render.flags & RENDER_VIEWMODEL)))
                        {