src/proto2/GameState.cc
changeset 170 fe74105c07ea
parent 160 ba0b6f421a3c
child 180 bfe1077edab3
--- a/src/proto2/GameState.cc	Mon Dec 01 23:39:37 2008 +0000
+++ b/src/proto2/GameState.cc	Mon Dec 01 23:43:05 2008 +0000
@@ -19,8 +19,14 @@
     if (input & INPUT_MOVE_DOWN)
         da -= CROSSHAIR_ANGLE_SPEED;
 
-    if (input & INPUT_MOVE_JUMP)
-        jump();
+    if (input & INPUT_MOVE_JUMP) {
+        if ((input & INPUT_MOVE_LEFT))
+            jump(-1);
+        else if ((input & INPUT_MOVE_RIGHT))
+            jump(1);
+        else
+            jump(0);
+    }
 
     this->changeAim(da); // Move crosshair