(svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named

This commit is contained in:
rubidium
2010-05-12 19:21:00 +00:00
parent 863ff6522b
commit 93ff7d78e1
11 changed files with 64 additions and 14 deletions

View File

@@ -489,7 +489,7 @@ public:
/* Depots refer to towns. */
const Depot *d;
FOR_ALL_DEPOTS(d) {
if (d->town_index == this->town->index) return false;
if (d->town == this->town) return false;
}
/* Check all tiles for town ownership. */