Rename a parameter to match its purpose.

This commit is contained in:
Christopher Head 2016-07-20 00:14:54 -07:00
parent cbe0ab9770
commit 9d059b8e31
No known key found for this signature in database
GPG Key ID: E3188720C4CCDD7E
1 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ function boost_cart:is_rail(pos, railtype)
return minetest.get_item_group(node, "connect_to_raillike") == railtype
end
function boost_cart:check_front_up_down(pos, dir_, check_down, railtype)
function boost_cart:check_front_up_down(pos, dir_, check_up, railtype)
local dir = vector.new(dir_)
local cur = nil
@ -66,7 +66,7 @@ function boost_cart:check_front_up_down(pos, dir_, check_down, railtype)
return dir
end
-- Up
if check_down then
if check_up then
dir.y = 1
cur = vector.add(pos, dir)
if boost_cart:is_rail(cur, railtype) then
@ -212,4 +212,4 @@ function boost_cart:register_rail(name, def)
end
minetest.register_node(name, def)
end
end