mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 10:52:25 +01:00
fix leftover pi shortcut
This commit is contained in:
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
Block a user