From 93cf79583b390405b28354c2c1c32b51a122e0ee Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 23 Aug 2003 10:19:26 +0000 Subject: [PATCH] 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 --- chase.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) { -- 2.39.2