From 40421807431b3578efd253fddb0febdd35b87b38 Mon Sep 17 00:00:00 2001 From: MisterE123 Date: Wed, 3 Feb 2021 14:30:09 -0500 Subject: [PATCH] Update globalstep.lua --- minigame_manager/globalstep.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minigame_manager/globalstep.lua b/minigame_manager/globalstep.lua index e2f9c80..a2a3b67 100644 --- a/minigame_manager/globalstep.lua +++ b/minigame_manager/globalstep.lua @@ -66,6 +66,8 @@ minetest.register_globalstep(function(dtime) local remove_tail = true + local died --used to determine whether to elim player + -- if players are alive, move the worms (add to the length, subtract from the tail) @@ -81,7 +83,7 @@ minetest.register_globalstep(function(dtime) local look_dir = wormball.get_look_dir(arena,player) --in globals file; returns a string, one of: px, nx, pz, nz for the approximation of player look direction - local died = false --used to determine whether to elim player + died = false --used to determine whether to elim player --get player direction from current input, first check up or down, then look direction