From: havoc Date: Sat, 23 Aug 2003 10:19:26 +0000 (+0000) Subject: fix severe bug that made chase_up continually increase up to 118 (thanks to yummyluv... X-Git-Tag: xonotic-v0.1.0preview~6420 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=93cf79583b390405b28354c2c1c32b51a122e0ee;p=xonotic%2Fdarkplaces.git fix severe bug that made chase_up continually increase up to 118 (thanks to yummyluv for pointing this out, and Electro for making me realize why it happened) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3411 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/chase.c b/chase.c index 7c1c8aa0..cef93058 100644 --- 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) {