Clean up some player_can functions and add generic player parameter.
Clean up player resting functions.
Remove redundant floor check. [1790]
Merge pull request #287 from bensemmler/p-util-cleanup

Clean up p-util.c, revert redundant fix for #1790