Fix an ancient bug where monsters couldn't swap positions vertically

(only horizontally or diagonally.) Quash a couple of potential bugs too. Code cleanups.

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8872 c06c8d41-db1a-0410-9941-cceddc491573

Created by  haranp  on February 1, 2009
M6JQ7Z4RM3KUHVM74UNVUUUO4WV2CEW663CSHCKANVQ4PUVRIMFAC
Dependencies
In channels
main
Change contents