Fix bug where the player sprite would get out of sync with the player position if rotation was enabled.