diff --git a/mobf/graphics.lua b/mobf/graphics.lua index e393fb9..2297342 100644 --- a/mobf/graphics.lua +++ b/mobf/graphics.lua @@ -87,7 +87,6 @@ function graphics.update(entity,now,dtime) dbg_mobf.graphics_lvl3("MOBF: attention mode orientation update") local direction = mobf_get_direction(entity.object:getpos(), entity.dynamic_data.attention.most_relevant_target:getpos()) - if entity.mode == "3d" then entity.object:setyaw( mobf_calc_yaw(direction.x,direction.z)) @@ -233,7 +232,6 @@ function graphics.set_animation(entity,name) return end - --fallback entity.object:setsprite({x=0,y=0}, 1, 0, true) diff --git a/mobf/mgen_probab/direction_control.lua b/mobf/mgen_probab/direction_control.lua index 233cd43..6f18f91 100644 --- a/mobf/mgen_probab/direction_control.lua +++ b/mobf/mgen_probab/direction_control.lua @@ -143,7 +143,7 @@ end --! @return x/y/z acceleration ------------------------------------------------------------------------------- function direction_control.get_random_acceleration(minaccel,maxaccel,current_yaw, minrotation) - + local direction = 1 if math.random() < 0.5 then direction = -1