Improved flight height code to take ceiling into account.

git-svn-id: http://keeperfx.googlecode.com/svn/trunk@1434 40a56aae-0377-11df-bfb3-7781b9cb07ea