1
0
Fork 0

Fix #12987: Historical houses now always spawn completed (#13332)

Co-authored-by: Anonymous <anonymous@openttd.org>
pull/13345/head
Iris-Persephone 2025-01-19 18:58:05 -05:00 committed by GitHub
parent 40efc6be00
commit a589793e27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2734,7 +2734,7 @@ static void BuildTownHouse(Town *t, TileIndex tile, const HouseSpec *hs, HouseID
uint32_t construction_random = Random();
construction_stage = TOWN_HOUSE_COMPLETED;
if (_generating_world && Chance16(1, 7)) construction_stage = GB(construction_random, 0, 2);
if (_generating_world && !HasFlag(hs->extra_flags, HouseExtraFlags::BUILDING_IS_HISTORICAL) && Chance16(1, 7)) construction_stage = GB(construction_random, 0, 2);
if (construction_stage == TOWN_HOUSE_COMPLETED) {
ChangePopulation(t, hs->population);