changed default move speed with the joystick
authorJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 13 Sep 2018 02:12:20 +0000 (05:12 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 13 Sep 2018 02:12:20 +0000 (05:12 +0300)
src/app.cc

index 047c1eb..a116e68 100644 (file)
@@ -311,8 +311,8 @@ static void update(float dt)
                jmove_lensq -= jdeadsq;
 
                float mag = len * len;
-               dir.x += mag * joy_move.x / len * 2.0 * speed;
-               dir.z += mag * joy_move.y / len * 2.0 * speed;
+               dir.x += mag * joy_move.x / len * speed;
+               dir.z += mag * joy_move.y / len * speed;
        }
        if(jlook_lensq > jdeadsq) {
                float len = sqrt(jlook_lensq);