Fixes #5255 and walking over edges

Before walking over an asteroid edge would have put the mob under the
sprite, as if the mob crawled under it.
Merge pull request #5282 from Jarcolr/master

Partially fixes #5255 and walking over asteroid edges