From 5c595e39b152348ab52b7b486a1303a4fcf5f3c0 Mon Sep 17 00:00:00 2001 From: LemADEC Date: Fri, 29 Aug 2014 19:22:39 +0200 Subject: [PATCH] Integrated last changes --- src/assets/warpdrive/lua/warpcontroller/startup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/assets/warpdrive/lua/warpcontroller/startup b/src/assets/warpdrive/lua/warpcontroller/startup index 0ee1c41a..09c6b665 100644 --- a/src/assets/warpdrive/lua/warpcontroller/startup +++ b/src/assets/warpdrive/lua/warpcontroller/startup @@ -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)