projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ece86c
)
Boats: Increase maximum velocity to 5n/s
author
paramat
<mat.gregory@virginmedia.com>
Fri, 15 Apr 2016 09:43:10 +0000
(10:43 +0100)
committer
paramat
<mat.gregory@virginmedia.com>
Sat, 16 Apr 2016 18:27:47 +0000
(19:27 +0100)
mods/boats/init.lua
patch
|
blob
|
history
diff --git
a/mods/boats/init.lua
b/mods/boats/init.lua
index a85f6e1e88c513d73d71a188b5e42b1db777959c..f8d0ccb4ba8858740dd36e2e3573e81a95de331a 100644
(file)
--- a/
mods/boats/init.lua
+++ b/
mods/boats/init.lua
@@
-159,8
+159,8
@@
function boat.on_step(self, dtime)
self.v = 0
return
end
- if math.abs(self.v) >
4.
5 then
- self.v =
4.
5 * get_sign(self.v)
+ if math.abs(self.v) > 5 then
+ self.v = 5 * get_sign(self.v)
end
local p = self.object:getpos()
@@
-182,8
+182,8
@@
function boat.on_step(self, dtime)
p.y = p.y + 1
if is_water(p) then
local y = self.object:getvelocity().y
- if y >=
4.
5 then
- y =
4.
5
+ if y >= 5 then
+ y = 5
elseif y < 0 then
new_acce = {x = 0, y = 20, z = 0}
else