summaryrefslogtreecommitdiff
path: root/share/library/Misc/ground.lua
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-09 14:18:22 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-09 14:18:22 +0100
commit39fb4bb56f5c5644aba0603c01cbad112b66273c (patch)
tree6c9965d5b412c3bf9c442a0694e823a863dfe6e2 /share/library/Misc/ground.lua
parentab3e2733ce12e38d53324da96281cf9e12a11fc5 (diff)
downloadlogdiag-39fb4bb56f5c5644aba0603c01cbad112b66273c.tar.gz
logdiag-39fb4bb56f5c5644aba0603c01cbad112b66273c.tar.xz
logdiag-39fb4bb56f5c5644aba0603c01cbad112b66273c.zip
Make all variables in Lua scripts local.
Diffstat (limited to 'share/library/Misc/ground.lua')
-rw-r--r--share/library/Misc/ground.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/library/Misc/ground.lua b/share/library/Misc/ground.lua
index fdcf593..0c36240 100644
--- a/share/library/Misc/ground.lua
+++ b/share/library/Misc/ground.lua
@@ -1,18 +1,18 @@
-- Symbol name
-names =
+local names =
{
en = "Ground",
cs = "Zem"
}
-- Render area in base units (X1, Y1, X2, Y2)
-area = {-1, -1, 1, 2}
+local area = {-1, -1, 1, 2}
-- Terminals
-terminals = {{0, -1}}
+local terminals = {{0, -1}}
-- Rendering
-render = function (cr)
+local render = function (cr)
-- The vertical line
cr.move_to (0, -1)
cr.line_to (0, 0.5)