projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5eaa96
)
Cap speed to sv_maxspeed, so this looks right when bunny-hopping (makes more sense...
author
divverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Jul 2010 18:03:42 +0000
(18:03 +0000)
committer
Rudolf Polzer <divverent@alientrap.org>
Tue, 13 Jul 2010 20:52:48 +0000
(22:52 +0200)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10283
d7cf8633
-e32d-0410-b094-
e92efae38249
::stable-branch::merge=
b45e6c0be4b24d4dd5b5e127c08b0c9653051ca6
view.c
patch
|
blob
|
history
diff --git
a/view.c
b/view.c
index 2c330c616ab905f21194e52126f3fa77d3ab7ae2..4f781bb1da20913d15ac991add3f130ceaa9c626 100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-690,7
+690,7
@@
void V_CalcRefdef (void)
}
cycle2 *= cl_bobrollup.value * cl.bobroll_airtime;
- bobroll =
xyspeed
* cycle2;
+ bobroll =
bound(0, xyspeed, sv_maxspeed.value)
* cycle2;
viewangles[2] = bound(-45, bobroll, 45);
}