]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix severe bug that made chase_up continually increase up to 118 (thanks to yummyluv...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 10:19:26 +0000 (10:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 10:19:26 +0000 (10:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3411 d7cf8633-e32d-0410-b094-e92efae38249

chase.c

diff --git a/chase.c b/chase.c
index 7c1c8aa05837801e190d2364962b3cfac8fa5701..cef9305828cde8d0ffd9d4023fc91562614c6c61 100644 (file)
--- a/chase.c
+++ b/chase.c
@@ -50,11 +50,13 @@ void Chase_Update (void)
        camback = bound(0, chase_back.value, 128);
        if (chase_back.value != camback)
                Cvar_SetValueQuick(&chase_back, camback);
-       // this + 22 is to match view_ofs for compatibility with older versions
-       camup = bound(-48, chase_up.value, 96) + 22;
+       camup = bound(-48, chase_up.value, 96);
        if (chase_up.value != camup)
                Cvar_SetValueQuick(&chase_up, camup);
 
+       // this + 22 is to match view_ofs for compatibility with older versions
+       camup += 22;
+
        VectorCopy(cl.viewangles, projectangles);
        if (gamemode == GAME_GOODVSBAD2 && chase_stevie.integer)
        {