diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-05-10 19:15:31 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-05-10 19:15:31 +0000 |
commit | 17deba0bcda7f39696bad713bc2c0bc49ec4fb59 (patch) | |
tree | c9b5595a875d9070820c7b41b3037cecf6578da2 /Lua/game/scripts | |
parent | 64ed220b59465b39fbbd6957dcb93618ab330cf4 (diff) | |
download | usdx-17deba0bcda7f39696bad713bc2c0bc49ec4fb59.tar.gz usdx-17deba0bcda7f39696bad713bc2c0bc49ec4fb59.tar.xz usdx-17deba0bcda7f39696bad713bc2c0bc49ec4fb59.zip |
some cosmetics
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1721 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Lua/game/scripts')
-rw-r--r-- | Lua/game/scripts/main.lua | 4 |
1 files 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 |