Well, I implemented automatical restoration of portdock - and run into problem when shutting the game - it locked up, started periodically remove and restore the same portdock...
So I will stay with design that port is removed when portdock is gone.
I can say, this is not a big problem anyway, it happens very rarely, I run to this problem on my spider lake map, where rivers are narrow, there was a military building on the other bank and it destroyed a port on the other bank.
Also a player can mitigate a problem if he builds a military building near a port.
Well, I implemented automatical restoration of portdock - and run into problem when shutting the game - it locked up, started periodically remove and restore the same portdock...
So I will stay with design that port is removed when portdock is gone.
I can say, this is not a big problem anyway, it happens very rarely, I run to this problem on my spider lake map, where rivers are narrow, there was a military building on the other bank and it destroyed a port on the other bank.
Also a player can mitigate a problem if he builds a military building near a port.