Fixed gate bug ray2 on debug version

$DEBUGUNLOCKISLANDS overwrote the check that gave gate control to ray2.