Flipped some variables in Portals

To make them work on the X axis.
Merge pull request #306 from tigerw/master

Flipped some variables in Portals