Skip to content
Snippets Groups Projects
Commit f8e273da authored by paramat's avatar paramat
Browse files

Boats: Increase maximum velocity to 5n/s

parent 9ece86cc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment