From 17deba0bcda7f39696bad713bc2c0bc49ec4fb59 Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Sun, 10 May 2009 19:15:31 +0000 Subject: some cosmetics git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1721 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Lua/game/scripts/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lua/game/scripts/main.lua b/Lua/game/scripts/main.lua index 3e035bb9..e2fd95c6 100644 --- a/Lua/game/scripts/main.lua +++ b/Lua/game/scripts/main.lua @@ -1,5 +1,5 @@ -- Calculate FPS -FPScounter = 1 + (FPScounter or 0) -- increment FPScounter (which is nil, when undefined, therefore "or 0") +FPScounter = 1 + (FPScounter or 0) -- increment FPScounter (which is nil, when undefined, therefore "or 0") if os.time() > (LastTime or 0) then LastTime = os.time() print("FPS: " .. FPScounter - (LastFPScounter or 0)) -- print is only displayed, if compiled with DEBUG @@ -35,4 +35,4 @@ gl.TexCoord(1, 1); gl.Vertex(110, 110); gl.TexCoord(1, 0); gl.Vertex(110, 10); gl.End() gl.Disable("GL_TEXTURE_2D") -gl.Disable("GL_BLEND") +gl.Disable("GL_BLEND") \ No newline at end of file -- cgit v1.2.3