Merge pull request #390 from dalkon/master

Fix
Update ban.lua
Merge pull request #392 from fsbcorrea/patch-2

Update ban.lua
Fix bug with pathfinding when compiling with -O3

This commit fixes issue #164. Thanks to @dalkon for the patch.