diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-04-18 20:54:02 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-04-18 20:54:02 +0100 |
commit | 30e11573925007f413d75be90a2de40ae9089e63 (patch) | |
tree | cd23b5dfe6ebb7074194efa21bc1df09d9523611 | |
parent | a80b8dc3b0b285d54a71dc15bf80bbf75e421857 (diff) |
Fixed global yaw bug (thanks Sofar)
-rw-r--r-- | api.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |