Changeset - r20669:d2e627ece87b
[Not reviewed]
master
0 1 0
fonsinchen - 11 years ago 2013-08-10 12:47:10
fonsinchen@openttd.org
(svn r25707) -Fix: apply coding style wrt if/else
1 file changed with 7 insertions and 9 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industrytiles.cpp
Show inline comments
 
@@ -212,15 +212,13 @@ bool DrawNewIndustryTile(TileInfo *ti, I
 
	IndustryTileResolverObject object(gfx, ti->tile, i);
 

	
 
	const SpriteGroup *group = SpriteGroup::Resolve(inds->grf_prop.spritegroup[0], &object);
 
	if (group == NULL || group->type != SGT_TILELAYOUT) {
 
		return false;
 
	} else {
 
		/* Limit the building stage to the number of stages supplied. */
 
		const TileLayoutSpriteGroup *tlgroup = (const TileLayoutSpriteGroup *)group;
 
		byte stage = GetIndustryConstructionStage(ti->tile);
 
		IndustryDrawTileLayout(ti, tlgroup, i->random_colour, stage, gfx);
 
		return true;
 
	}
 
	if (group == NULL || group->type != SGT_TILELAYOUT) return false;
 

	
 
	/* Limit the building stage to the number of stages supplied. */
 
	const TileLayoutSpriteGroup *tlgroup = (const TileLayoutSpriteGroup *)group;
 
	byte stage = GetIndustryConstructionStage(ti->tile);
 
	IndustryDrawTileLayout(ti, tlgroup, i->random_colour, stage, gfx);
 
	return true;
 
}
 

	
 
extern bool IsSlopeRefused(Slope current, Slope refused);
0 comments (0 inline, 0 general)