summaryrefslogtreecommitdiff
path: root/mount.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-09-21 09:24:18 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-09-21 09:24:18 +0100
commit7c4dc07acde5ab6c4a828cde84a9e08754397e00 (patch)
tree0e5be661290ca6c61afed96dedc827484fcde4e4 /mount.lua
parent84672a07ce69c5474a240beb98a1a82685897205 (diff)
getyaw() to get_yaw()
Diffstat (limited to 'mount.lua')
-rw-r--r--mount.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/mount.lua b/mount.lua
index d574293..baffe32 100644
--- a/mount.lua
+++ b/mount.lua
@@ -155,8 +155,8 @@ function mobs.attach(entity, player)
default.player_set_animation(player, "sit" , 30)
end)
- --player:set_look_yaw(entity.object:getyaw() - rot_view)
- player:set_look_horizontal(entity.object:getyaw() - rot_view)
+ --player:set_look_yaw(entity.object:get_yaw() - rot_view)
+ player:set_look_horizontal(entity.object:get_yaw() - rot_view)
end
@@ -355,7 +355,7 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime)
end
end
- new_velo = get_velocity(v, entity.object:getyaw() - rot_view, velo.y)
+ new_velo = get_velocity(v, entity.object:get_yaw() - rot_view, velo.y)
new_acce.y = new_acce.y + acce_y
entity.object:setvelocity(new_velo)