]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Inverted cosine is actually called sine. I should be ashamed of myself :P
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 18:28:38 +0000 (21:28 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 18:28:38 +0000 (21:28 +0300)
qcsrc/server/g_subs.qc

index f7516d914185c2c35dbac7fa06b24ea55881727a..c422b53be100348d7c726a7cba293e0e6e4e9fb4 100644 (file)
@@ -200,7 +200,7 @@ void SUB_CalcMove_controller_think (void)
                                phasepos = phasepos + 1; // correct range to [0, 2]
                                phasepos = phasepos / 2; // correct range to [0, 1]
                                break;
-                       case 2: // inverted cosine
+                       case 2: // sine
                                phasepos = 3.14159265 + (phasepos * 3.14159265); // range: [pi, 2pi]
                                phasepos = sin(phasepos); // sin [pi, 2pi] is in [-1, 1]
                                phasepos = phasepos + 1; // correct range to [0, 2]