Ghost busters
In case it wasn't obvious by now the map on the right in my game (I have two maps) is the place where “ideatic” beings dwell. It's pretty much a map of ghosts. Red units don't see remote white units because of fog of war so they are chasing ghosts instead on the right map. You could have red units peek the position of white units/white base by accessing the position in code but that's blunt cheating. Playing fare is the way.
If you are red unit and traveling towards a place where a ghost is found, when you reach the spot if there is a ghost AND a white unit in the same place there is a match, problem solved (white units and ghosts are on two separate maps but with a help of an X offset you get an overlap) But what if there is no white unit to be found at the location. You're left with a ghost that needs to be handled. The solution is to place it somewhere out of sight. By ‘out of sight’ I mean a place where no one can see it. Officially that's a white unit hidden by the fog of war, found in place where it can be seen by no red unit.
I have switched from circular LOS to a line of sight that has the shape of a quad. It's not very precise but I find it easier to work this way.
Discussion