That code is already really inefficient with the deeply nested loops and everything. I'll try to come up with a better solution.Nope. I think the bug has been there ever since the lose-contact feature was implemented. Time to fix the code! Currently it only takes units and cities into account when deciding whether to lose contact or not, culture-covered tile are excluded.