Ticket #918 (closed defect: fixed)
Fix rendering of territories with holes
|Reported by:||Philip||Owned by:||vts|
|Priority:||Should Have||Milestone:||Alpha 9|
Consider territory assignments like:
00000000 01111110 01012130 01111110 00000000
where 0 is neutral. CCmpTerritoryManager::ComputeBoundaries will find the outer edge of the 1s, but not the inner edge around the 0 hole or the 2 hole. (The 3 isn't a hole since the outer edge already surrounds it.)
Might need to add a 'already processed' flag to tiles instead of setting them to 0, and then add a 'already has territory boundary at the +j edge of this tile' flag which is set when walking the boundary, then if we find a tile with different owner to its -j neighbour and that neighbour isn't neutral and doesn't have the edge flag then start a new walk around that edge to produce the inner boundary (with inverted direction). Or something like that.