Comment 12 for bug 1638394

Revision history for this message
Notabilis (notabilis27) wrote :

I don't think it will work the way you fixed it. I haven't tried, but it probably will crash when you can only see the upper end of the road (e.g. enemy to the lower right of your land).

But I like the idea. I only did a short try, but what if we create a new local "owner" variable which is set to either start.owner or end.owner, whichever is not null? At least one of them should be not null and contain the right owner, since the method is only called when the street is at least partially visible (i.e. at least one end). In a short test (loading our crashing save games) it seemed to work.

I have slight concerns about what will happen if the player can see one end of the road and the other endpoint ends in an area which once was owned by another enemy. I could imagine that the road is drawn for the wrong tribe but I haven't tried it yet. (Node that this effect should also be present in trunk.)