mirror of
https://github.com/joe7575/tubelib2.git
synced 2024-10-02 07:53:07 +02:00
replace get_look_pitch by get_look_vertical
This commit is contained in:
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?
|
||||
|
Loading…
Reference in New Issue
Block a user