]> git.xonotic.org Git - xonotic/darkplaces.git/commit
added LoopingFrameNumberFromDouble function to do this operation
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 May 2011 15:46:32 +0000 (15:46 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 23 May 2011 15:55:44 +0000 (17:55 +0200)
commit3db10ccb0dc848bd0c633b440a5513ad8ff42ba0
tree0cf7cd869501258f008c1cd0937b35531a6c4150
parenta3ea93578d5055b8b3b37507695e598a61404db3
added LoopingFrameNumberFromDouble function to do this operation
correctly (using divide, floor, and multiply), since doing it the lazy
way (cast to int, use modulus operator) breaks down after a certain
amount of time in the level

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11163 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6bb2c4cecb8a4e633fc0faf90c939fc180f7163b
mathlib.c
mathlib.h