Fix ceiling collision bug

When you un-duck or stop crawling, if there isn't sufficient headroom, you will go back to crawling.

Fixes #1594

Known issue: if you are forced into the crawling state like this, you will be stuck there until you release down with adequate space to stand. I can see about returning the player to standing automatically, but I think it works well enough as is.