1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-24 17:50:21 +01:00

remove yaw clamping, causes mob jitters

This commit is contained in:
tenplus1 2022-11-28 13:36:28 +00:00
parent a88222a744
commit 54cb8f487e

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