summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/api.lua b/api.lua
index 93f8f40..292a847 100644
--- a/api.lua
+++ b/api.lua
@@ -1115,6 +1115,8 @@ end
-- execute current state (stand, walk, run, attacks)
local do_states = function(self, dtime)
+ local yaw = 0
+
if self.state == "stand" then
if math.random(1, 4) == 1 then