From 20d2558f1becce529c9a820ee95086e76c553c88 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 17 Apr 2023 08:03:37 +0100 Subject: [PATCH] Fix: Clear church/stadium flags when copying house substitute specs. --- src/newgrf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 62f41db169..fe6db08912 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2400,6 +2400,9 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt housespec->random_colour[2] = 0x0C; // they stand for red, blue, orange and green housespec->random_colour[3] = 0x06; + /* House flags 40 and 80 are exceptions; these flags are never set automatically. */ + housespec->building_flags &= ~(BUILDING_IS_CHURCH | BUILDING_IS_STADIUM); + /* Make sure that the third cargo type is valid in this * climate. This can cause problems when copying the properties * of a house that accepts food, where the new house is valid