]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix something I forgot, sine movement is still broken.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 23:06:53 +0000 (02:06 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 23:06:53 +0000 (02:06 +0300)
qcsrc/server/g_subs.qc

index c422b53be100348d7c726a7cba293e0e6e4e9fb4..8270f847dca68cccba4e995ff4ae9ac257fbcdb5 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: // sine
+                       case 3: // 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]