Revert prev commit correctly removing sprint FOV

master
shivajiva101 2020-09-27 00:43:24 +01:00 committed by GitHub
parent 9676673c6f
commit 7e0625354e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -8,8 +8,10 @@ minetest.register_globalstep(function(dtime)
if sprint then
players[name] = true
player:set_physics_override({speed = 1.3})
player:set_fov(1.2, true, 0.1)
elseif players[name] then
player:set_physics_override({speed = 1})
player:set_fov(0, true, 0.1)
players[name] = nil
end
end