(svn r10755) -Codechange: make the town struct use the pool item class as super class.

This commit is contained in:
rubidium
2007-08-02 21:05:54 +00:00
parent 472749af66
commit db374f600c
5 changed files with 48 additions and 93 deletions

View File

@@ -134,7 +134,7 @@ static void Place_LandInfo(TileIndex tile)
GetString(_landinfo_data[3], STR_LANDINFO_COORDS, lastof(_landinfo_data[3]));
SetDParam(0, STR_01A9_NONE);
if (t != NULL && IsValidTown(t)) {
if (t != NULL && t->IsValid()) {
SetDParam(0, STR_TOWN);
SetDParam(1, t->index);
}