Minor lighting optimization

Reduces redundant looping in lighting checks