only show physics stats for singleplayer if debug set to true

This commit is contained in:
tenplus1 2023-05-23 10:20:27 +01:00
parent 7ac306d9d3
commit 68fff7c074

View File

@ -1,6 +1,6 @@
-- global
pova = {}
pova = {debug = false}
-- local
local pova_list = {}
@ -117,7 +117,7 @@ pova.do_override = function(player)
end
-- for testing only
if name == "singleplayer" then
if pova.debug and name == "singleplayer" then
print ("speed: " .. speed .. " / jump: " .. jump .. " / gravity: " .. gravity)
end