projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ba4f37
)
Only go fast in autorun if fast move is enabled
author
est31
<MTest31@outlook.com>
Tue, 3 Nov 2015 14:29:52 +0000
(15:29 +0100)
committer
est31
<MTest31@outlook.com>
Tue, 3 Nov 2015 14:40:47 +0000
(15:40 +0100)
src/localplayer.cpp
patch
|
blob
|
history
diff --git
a/src/localplayer.cpp
b/src/localplayer.cpp
index 96e2737c78156cd80e8336ff637afb3ed1423682..e55464479aa177b6042d949230ff74aad038b5bc 100644
(file)
--- a/
src/localplayer.cpp
+++ b/
src/localplayer.cpp
@@
-512,15
+512,16
@@
void LocalPlayer::applyControl(float dtime)
}
}
- if(continuous_forward)
+ if
(continuous_forward)
speedH += move_direction;
- if
(control.up)
- {
-
if(continuous_forward
)
- superspeed = true;
- else
+ if
(control.up) {
+
if (continuous_forward)
{
+
if (fast_move
)
+
superspeed = true;
+ } else {
speedH += move_direction;
+ }
}
if(control.down)
{