forked from VoxeLibre/VoxeLibre
Simplify code
This commit is contained in:
parent
b7e6db537b
commit
f46c4ebad7
|
@ -232,14 +232,12 @@ minetest.register_globalstep(function(dtime)
|
||||||
local moving = {}
|
local moving = {}
|
||||||
local any
|
local any
|
||||||
for id, y in pairs(huds.moving) do
|
for id, y in pairs(huds.moving) do
|
||||||
|
y = y - 1
|
||||||
|
|
||||||
if not control.jump then
|
if control.jump then
|
||||||
y = y - 1
|
y = y - 2
|
||||||
else
|
if control.aux1 then
|
||||||
if not control.aux1 then
|
y = y - 5
|
||||||
y = y - 3
|
|
||||||
else
|
|
||||||
y = y - 8
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue