Initialize facedir and wallmounted tables only once.
authorDiego Martinez <kaeza@users.sf.net>
Wed, 10 Feb 2016 00:46:22 +0000 (21:46 -0300)
committerparamat <mat.gregory@virginmedia.com>
Thu, 11 Feb 2016 04:23:17 +0000 (04:23 +0000)
commit13dd7959dbb62ca9327062181d7c4f04b469c38c
treed3db1e8ed2ecc0795aa09019dd06201a342ec8ba
parent0f03547b033690932707b2dde1ce3eeb09ddcf7e
Initialize facedir and wallmounted tables only once.

This makes the functions a bit faster since they don't
have to recreate the tables every invocation, and makes
the code more readable.

Also, document `wallmounted_to_dir`.

The function was implemented but not documented in `lua_api.txt`.
builtin/game/item.lua
doc/lua_api.txt