Fixed player rotation upon exiting a portal, and the calculation of the portal center (which was using integer division before).