mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-02-17 21:23:44 +01:00
Simplify code
This commit is contained in:
@ -232,14 +232,12 @@ minetest.register_globalstep(function(dtime)
|
||||
local moving = {}
|
||||
local any
|
||||
for id, y in pairs(huds.moving) do
|
||||
y = y - 1
|
||||
|
||||
if not control.jump then
|
||||
y = y - 1
|
||||
else
|
||||
if not control.aux1 then
|
||||
y = y - 3
|
||||
else
|
||||
y = y - 8
|
||||
if control.jump then
|
||||
y = y - 2
|
||||
if control.aux1 then
|
||||
y = y - 5
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user