projects
/
laserbrain_demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd19c2
)
changed default move speed with the joystick
author
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 13 Sep 2018 02:12:20 +0000
(
05:12
+0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 13 Sep 2018 02:12:20 +0000
(
05:12
+0300)
src/app.cc
patch
|
blob
|
history
diff --git
a/src/app.cc
b/src/app.cc
index
047c1eb
..
a116e68
100644
(file)
--- a/
src/app.cc
+++ b/
src/app.cc
@@
-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);