fix leftover pi shortcut
parent
faa38ffab8
commit
db63f1c453
|
@ -514,9 +514,6 @@ function mob_class:on_step(dtime)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
local timer = 0
|
||||
minetest.register_globalstep(function(dtime)
|
||||
timer = timer + dtime
|
||||
|
|
|
@ -570,7 +570,7 @@ function mob_class:check_runaway_from()
|
|||
local yaw = (atan(vec.z / vec.x) + 3 *math.pi/ 2) - self.rotate
|
||||
|
||||
if lp.x > s.x then
|
||||
yaw = yaw + pi
|
||||
yaw = yaw + math.pi
|
||||
end
|
||||
|
||||
yaw = self:set_yaw( yaw, 4)
|
||||
|
|
Loading…
Reference in New Issue