diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-03 20:34:57 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-03 21:24:45 +0100 |
commit | b2fde0cf32348355f7725c6a7b0a523e0958c1a4 (patch) | |
tree | f12ab2fff979db589bc5a4a6de6fc7e8b4d67313 /scripts/lua/libmana-constants.lua | |
parent | 84c87cc99be29a694f0ffe83ab7a06ae433bb0cd (diff) | |
download | manaserv-b2fde0cf32348355f7725c6a7b0a523e0958c1a4.tar.gz manaserv-b2fde0cf32348355f7725c6a7b0a523e0958c1a4.tar.bz2 manaserv-b2fde0cf32348355f7725c6a7b0a523e0958c1a4.tar.xz manaserv-b2fde0cf32348355f7725c6a7b0a523e0958c1a4.zip |
Made some global Lua variables local
We have to be careful with introducing globals now that there is only a
single Lua state, so we shouldn't use globals unnecessarily. Any variable
should be declared 'local' unless there is a reason to make it global.
For additional safety we can also think about disallowing the use of globals
entirely. This also helps to catch typos in scripts.
Reviewed-by: Erik Schilling
Diffstat (limited to 'scripts/lua/libmana-constants.lua')
0 files changed, 0 insertions, 0 deletions