forked from minetest/minetest_game
Boats: Increase maximum velocity to 5n/s
This commit is contained in:
parent
9ece86cc7a
commit
f8e273da15
@ -159,8 +159,8 @@ function boat.on_step(self, dtime)
|
|||||||
self.v = 0
|
self.v = 0
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if math.abs(self.v) > 4.5 then
|
if math.abs(self.v) > 5 then
|
||||||
self.v = 4.5 * get_sign(self.v)
|
self.v = 5 * get_sign(self.v)
|
||||||
end
|
end
|
||||||
|
|
||||||
local p = self.object:getpos()
|
local p = self.object:getpos()
|
||||||
@ -182,8 +182,8 @@ function boat.on_step(self, dtime)
|
|||||||
p.y = p.y + 1
|
p.y = p.y + 1
|
||||||
if is_water(p) then
|
if is_water(p) then
|
||||||
local y = self.object:getvelocity().y
|
local y = self.object:getvelocity().y
|
||||||
if y >= 4.5 then
|
if y >= 5 then
|
||||||
y = 4.5
|
y = 5
|
||||||
elseif y < 0 then
|
elseif y < 0 then
|
||||||
new_acce = {x = 0, y = 20, z = 0}
|
new_acce = {x = 0, y = 20, z = 0}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user