summaryrefslogtreecommitdiff
path: root/mount.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-01-22 20:13:03 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-01-22 20:13:03 +0000
commitbc86a32af663f8eb0d35af62bdbd56a5c19e9104 (patch)
tree7d19dddb0f6613233207361aa0878bef3b2fecae /mount.lua
parente3515482cc636d4b84b7363b4815bf24ebdfe220 (diff)
fixed mount mob rotation
Diffstat (limited to 'mount.lua')
-rw-r--r--mount.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/mount.lua b/mount.lua
index 342a3b7..b8d5d05 100644
--- a/mount.lua
+++ b/mount.lua
@@ -196,7 +196,10 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime)
end
--entity.object:setyaw(entity.driver:get_look_yaw() - rot_steer)
- entity.object:setyaw(entity.driver:get_look_horizontal())-- - rot_steer)
+-- entity.object:setyaw(entity.driver:get_look_horizontal())-- - rot_steer)
+
+ -- fix mob rotation
+ entity.object:setyaw(entity.driver:get_look_horizontal() - entity.rotate)
if can_fly then