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

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