forked from mtcontrib/mobs_redo
Fixed global yaw bug (thanks Sofar)
This commit is contained in:
parent
a80b8dc3b0
commit
30e1157392
2
api.lua
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user