]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - chase.c
now supports skyboxes in q3bsp (note: must use the "sky" key in worldspawn to set...
[xonotic/darkplaces.git] / 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)
        {