(svn r9367) -Fix (r9315): If a new house doesn't have a corresponding action 3, the

graphics for the substitute (original) house should be drawn instead.
This commit is contained in:
maedhros
2007-03-20 10:06:39 +00:00
parent b82ed41a19
commit 7812f7fd0a
2 changed files with 10 additions and 3 deletions

View File

@@ -127,8 +127,15 @@ static void DrawTile_Town(TileInfo *ti)
HouseID house_id = GetHouseType(ti->tile);
if (house_id >= NEW_HOUSE_OFFSET) {
DrawNewHouseTile(ti, house_id);
return;
/* 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 (GetHouseSpecs(house_id)->spritegroup != NULL) {
DrawNewHouseTile(ti, house_id);
return;
} else {
house_id = GetHouseSpecs(house_id)->substitute_id;
}
}
/* Retrieve pointer to the draw town tile struct */