Screwdriver: use table lookup for facedir rotations.
authorAuke Kok <sofar@foo-projects.org>
Sat, 25 Feb 2017 08:27:19 +0000 (00:27 -0800)
committerparamat <mat.gregory@virginmedia.com>
Sun, 12 Mar 2017 10:20:19 +0000 (10:20 +0000)
commit297192dd394f9b6d9413db2ed726dc73b856b385
treec990858e29e6066e7275c8729fd4565fafa6c79a
parentf14b0a6ff5165d2858bd4e4f2586c7eaa29097fe
Screwdriver: use table lookup for facedir rotations.

The table was generated using the old code. A table lookup
should be faster than lots of math and branches.

Allows us to drop `nextrange()` as well.
mods/screwdriver/init.lua