Fix deprecated function in orienteering

master
Wuzzy 2021-07-11 02:36:33 +02:00
parent d4e1c289ca
commit 0250c4ca7b
1 changed files with 2 additions and 2 deletions

View File

@ -358,11 +358,11 @@ function orienteering.update_hud_displays(player)
local v local v
local attach = player:get_attach() local attach = player:get_attach()
if attach == nil then if attach == nil then
v = player:get_player_velocity() v = player:get_velocity()
else else
v = attach:get_velocity() v = attach:get_velocity()
if not v then if not v then
v = player:get_player_velocity() v = player:get_velocity()
end end
end end
speed_ver = v.y speed_ver = v.y