fix warning

This commit is contained in:
nixnoxus 2024-03-03 10:12:31 +01:00
parent aea404c386
commit 1819d350d4
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ function mob_class:is_object_in_view(object_list, object_range, node_range, turn
if object_pos and turn_around then
local vec = vector.subtract(object_pos, s)
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 object_pos.x > s.x then yaw = yaw + math.pi end
yaw = self:set_yaw(yaw, 4)