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)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 May 2011 15:46:32 +0000 (15:46 +0000)
commit6bb2c4cecb8a4e633fc0faf90c939fc180f7163b
tree0cf7cd869501258f008c1cd0937b35531a6c4150
parent9ae45aa38830d74344ac5d7a959788a2d89b5a6f
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
mathlib.c
mathlib.h