replace get_look_pitch by get_look_vertical

This commit is contained in:
Joachim Stolberg 2021-05-17 21:14:03 +02:00
parent 27daa8d2cb
commit 27cd9ce11e

@ -33,7 +33,7 @@ local function get_pos(pos, dir)
end
local function fdir(self, player)
local pitch = player:get_look_pitch()
local pitch = player:get_look_vertical()
if pitch > 1.0 and self.valid_dirs[6] then -- up?
return 6
elseif pitch < -1.0 and self.valid_dirs[5] then -- down?