Added BaseCollection<T>::getWrapIteratorPos()

git-svn-id: http://mancubus.net/svn/hosted/eternity/trunk@2647 86ba831e-150c-0410-ab35-e06eaae15ed9
* Cleanup in g_game.cpp
* Use new template MetaTable::getObjectKeyAndTypeEx
* Experimental tweak to portal line-of-sight tests; should be able to return to short-circuiting if a blockmap cell is exited without actually intercepting a portal line.

git-svn-id: http://mancubus.net/svn/hosted/eternity/trunk@2648 86ba831e-150c-0410-ab35-e06eaae15ed9
Added BaseCollection<T>::checkWrapIterator, which needs to be called any time a collection shrinks, to make sure the wrapiterator doesn't stay at an invalid position.

git-svn-id: http://mancubus.net/svn/hosted/eternity/trunk@2649 86ba831e-150c-0410-ab35-e06eaae15ed9