File diff r16330:464dbd0dd833 → r16331:77622ea88835
src/town_cmd.cpp
Show inline comments
 
@@ -207,7 +207,7 @@ static void DrawTile_Town(TileInfo *ti)
 
		/* Houses don't necessarily need new graphics. If they don't have a
 
		 * spritegroup associated with them, then the sprite for the substitute
 
		 * house id is drawn instead. */
 
		if (HouseSpec::Get(house_id)->grf_prop.spritegroup != NULL) {
 
		if (HouseSpec::Get(house_id)->grf_prop.spritegroup[0] != NULL) {
 
			DrawNewHouseTile(ti, house_id);
 
			return;
 
		} else {
 
@@ -264,7 +264,7 @@ static Foundation GetFoundation_Town(Til
 
	 */
 
	if (hid >= NEW_HOUSE_OFFSET) {
 
		const HouseSpec *hs = HouseSpec::Get(hid);
 
		if (hs->grf_prop.spritegroup != NULL && HasBit(hs->callback_mask, CBM_HOUSE_DRAW_FOUNDATIONS)) {
 
		if (hs->grf_prop.spritegroup[0] != NULL && HasBit(hs->callback_mask, CBM_HOUSE_DRAW_FOUNDATIONS)) {
 
			uint32 callback_res = GetHouseCallback(CBID_HOUSE_DRAW_FOUNDATIONS, 0, 0, hid, Town::GetByTile(tile), tile);
 
			if (callback_res == 0) return FOUNDATION_NONE;
 
		}