Porting fixes from TG

- Should fix some odd bugs with the HUD that don't need much more
precision, notably with double-clicking
- Camera lights should now work properly
Merge pull request #1591 from dylanstrategie/AI-Fix

Porting fixes from TG