fix autorelease pools not being set (
issue #209) and format code a little
use PtrInt to match lua's use of ptrdiff. Needs testing.
Fixed messages complaining about no autorelease pool being set up with objects leaking on the Mac. I simply initialized an autorelease pool in the couple of places that needed it.
Some fixes. Can't reproduce ghosts now.
workaround. disable drawing shot after passing through portal. proper fix would need to use the portal position