From 30e11573925007f413d75be90a2de40ae9089e63 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 18 Apr 2016 20:54:02 +0100 Subject: [PATCH] Fixed global yaw bug (thanks Sofar) --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index b02177b..93f8f40 100644 --- a/api.lua +++ b/api.lua @@ -1206,7 +1206,7 @@ local do_states = function(self, dtime) -- otherwise randomly turn elseif math.random(1, 100) <= 30 then - yaw = (math.random(0, 360) - 180) / 180 * pi + local yaw = (math.random(0, 360) - 180) / 180 * pi self.object:setyaw(yaw) end