remove yaw clamping, causes mob jitters

This commit is contained in:
tenplus1 2022-11-28 13:36:28 +00:00
parent a88222a744
commit 54cb8f487e
1 changed files with 1 additions and 11 deletions

12
api.lua
View File

@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20221125",
version = "20221128",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -356,16 +356,6 @@ function mob_class:set_yaw(yaw, delay)
yaw = 0
end
-- clamp our yaw to a 360 range
if deg(self.object:get_yaw()) > 360 then
yaw = rad(10) ; delay = 0
elseif deg(self.object:get_yaw()) < 0 then
yaw = rad(350) ; delay = 0
end
delay = mob_smooth_rotate and (delay or 0) or 0
if delay == 0 then