Fix for issue #2051.

The limit check was off by 90 degrees, stopping the camera from looking up.  This solution is not perfect (can get into a lock in some extreme situations) but quite usable.