1
0
Fork 0

fix leftover pi shortcut

This commit is contained in:
cora 2022-11-11 01:26:03 +01:00
parent faa38ffab8
commit db63f1c453
2 changed files with 1 additions and 4 deletions

View File

@ -514,9 +514,6 @@ function mob_class:on_step(dtime)
end end
end end
local timer = 0 local timer = 0
minetest.register_globalstep(function(dtime) minetest.register_globalstep(function(dtime)
timer = timer + dtime timer = timer + dtime

View File

@ -570,7 +570,7 @@ function mob_class:check_runaway_from()
local yaw = (atan(vec.z / vec.x) + 3 *math.pi/ 2) - self.rotate local yaw = (atan(vec.z / vec.x) + 3 *math.pi/ 2) - self.rotate
if lp.x > s.x then if lp.x > s.x then
yaw = yaw + pi yaw = yaw + math.pi
end end
yaw = self:set_yaw( yaw, 4) yaw = self:set_yaw( yaw, 4)