(svn r20796) -Fix: make sure all houses in the house spec array are valid. It was possible that part of a multitile house was not copied because the array was full
if(filename!=NULL)DEBUG(grf,1,"FinaliseHouseArray: %s defines house %d as multitile, but no suitable tiles follow. Disabling house.",filename,hs->grf_prop.local_id);
returnfalse;
}
/* Some places sum population by only counting north tiles. Other places use all tiles causing desyncs.
if(filename!=NULL)DEBUG(grf,1,"FinaliseHouseArray: %s defines multitile house %d with non-zero population on additional tiles. Disabling house.",filename,hs->grf_prop.local_id);
returnfalse;
}
/* Substitute type is also used for override, and having an override with a different size causes crashes.
DEBUG(grf,1,"FinaliseHouseArray: %s defines house %d with different house size then it's substitute type. Disabling house.",filename,hs->grf_prop.local_id);
DEBUG(grf,1,"FinaliseHouseArray: %s defines house %d as multitile, but no suitable tiles follow. Disabling house.",(*file)->filename,hs->grf_prop.local_id);
continue;
}
/* Some places sum population by only counting north tiles. Other places use all tiles causing desyncs.
DEBUG(grf,1,"FinaliseHouseArray: %s defines multitile house %d with non-zero population on additional tiles. Disabling house.",(*file)->filename,hs->grf_prop.local_id);
continue;
}
/* Substitute type is also used for override, and having an override with a different size causes crashes. */
DEBUG(grf,1,"FinaliseHouseArray: %s defines house %d with different house size then it's substitute type. Disabling house.",(*file)->filename,hs->grf_prop.local_id);