Integrated last changes

This commit is contained in:
LemADEC 2014-08-29 19:22:39 +02:00
parent c73f68569f
commit 5c595e39b1

View file

@ -170,12 +170,12 @@ function ShowInfo()
Show("Core:")
Show(" x, y, z = "..X..", "..Y..", "..Z)
local energy = warp.get_energy_level()
local energyMax = 1000000
if warpcore.get_energy_max ~= nil then
energyMax = warpcore.get_energy_max()
local energyMax = 100000000
if warp.get_energy_max ~= nil then
energyMax = warp.get_energy_max()
if energyMax == nil then energyMax = 1 end
end
Show(" Energy = "..math.floor(energy / 1000000).." % ("..energy.."EU)")
Show(" Energy = "..math.floor(energy / energyMax).." % ("..energy.."EU)")
Show(" Attached players = "..warp.get_attached_players())
Show("Dimensions:")
Show(" Front, Right, Up = "..GFront..", "..GRight..", "..GUp)