Skip to content

Commit f8e273d

Browse files
committedApr 16, 2016
Boats: Increase maximum velocity to 5n/s
1 parent 9ece86c commit f8e273d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎mods/boats/init.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ function boat.on_step(self, dtime)
159159
self.v = 0
160160
return
161161
end
162-
if math.abs(self.v) > 4.5 then
163-
self.v = 4.5 * get_sign(self.v)
162+
if math.abs(self.v) > 5 then
163+
self.v = 5 * get_sign(self.v)
164164
end
165165

166166
local p = self.object:getpos()
@@ -182,8 +182,8 @@ function boat.on_step(self, dtime)
182182
p.y = p.y + 1
183183
if is_water(p) then
184184
local y = self.object:getvelocity().y
185-
if y >= 4.5 then
186-
y = 4.5
185+
if y >= 5 then
186+
y = 5
187187
elseif y < 0 then
188188
new_acce = {x = 0, y = 20, z = 0}
189189
else

0 commit comments

Comments
 (0)
Please sign in to comment.