Fixed player spawning #953.
Fixed warnings.