Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Boats: Increase maximum velocity to 5n/s
  • Loading branch information
paramat committed Apr 16, 2016
1 parent 9ece86c commit f8e273d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mods/boats/init.lua
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit f8e273d

Please sign in to comment.