Change: Increase house type limit from 512 to 4096. (#12288)

This moves HouseType from m4+m3[6] to m8 making it 'easier' to access.
This commit is contained in:
Peter Nelson
2024-12-22 18:14:06 +00:00
committed by GitHub
parent 8e948af3bc
commit c72542431a
7 changed files with 30 additions and 18 deletions
+1 -1
View File
@@ -492,7 +492,7 @@ static uint32_t GetDistanceFromNearbyHouse(uint8_t parameter, TileIndex tile, Ho
local_houseid = nearby_house_id;
} else {
local_houseid = (hs->grf_prop.grffile == this->ro.grffile ? 1 : 2) << 8;
local_houseid |= hs->grf_prop.local_id;
local_houseid |= ClampTo<uint8_t>(hs->grf_prop.local_id); // Spec only allows 8 bits, so all local-ids above 254 are clamped.
}
return houseclass << 16 | local_houseid;
}