]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
renamed cl_deathtilt to v_deathtilt to match FTE, fuhquake and ezquake engines
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 14 Aug 2005 18:31:15 +0000 (18:31 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 14 Aug 2005 18:31:15 +0000 (18:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5576 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index c02459debcf06065ee4e765db5428684be9c6e4b..589f8f15ff5f673e0321ff267a54056a9e904bff 100644 (file)
--- a/view.c
+++ b/view.c
@@ -64,7 +64,7 @@ cvar_t chase_active = {CVAR_SAVE, "chase_active", "0"};
 // GAME_GOODVSBAD2
 cvar_t chase_stevie = {0, "chase_stevie", "0"};
 
-cvar_t cl_deathtilt = {0, "cl_deathtilt", "1"};
+cvar_t v_deathtilt = {0, "v_deathtilt", "1"};
 
 float  v_dmg_time, v_dmg_roll, v_dmg_pitch;
 
@@ -387,7 +387,7 @@ void V_CalcRefdef (void)
                        {
                                // first person view from entity
                                // angles
-                               if (cl.stats[STAT_HEALTH] <= 0 && cl_deathtilt.integer)
+                               if (cl.stats[STAT_HEALTH] <= 0 && v_deathtilt.integer)
                                        viewangles[ROLL] = 80;  // dead view angle
                                VectorAdd(viewangles, cl.punchangle, viewangles);
                                viewangles[ROLL] += V_CalcRoll(cl.viewangles, cl.movement_velocity);
@@ -599,6 +599,6 @@ void V_Init (void)
        if (gamemode == GAME_GOODVSBAD2)
                Cvar_RegisterVariable (&chase_stevie);
 
-       Cvar_RegisterVariable (&cl_deathtilt.integer);
+       Cvar_RegisterVariable (&v_deathtilt.integer);
 }