Fixed boundary check for game camera.