1
0
Fork 0

(svn r25707) -Fix: apply coding style wrt if/else

release/1.4
fonsinchen 2013-08-10 12:47:10 +00:00
parent 94add80602
commit 6777059c15
1 changed files with 7 additions and 9 deletions

View File

@ -212,15 +212,13 @@ bool DrawNewIndustryTile(TileInfo *ti, Industry *i, IndustryGfx gfx, const Indus
IndustryTileResolverObject object(gfx, ti->tile, i); IndustryTileResolverObject object(gfx, ti->tile, i);
const SpriteGroup *group = SpriteGroup::Resolve(inds->grf_prop.spritegroup[0], &object); const SpriteGroup *group = SpriteGroup::Resolve(inds->grf_prop.spritegroup[0], &object);
if (group == NULL || group->type != SGT_TILELAYOUT) { if (group == NULL || group->type != SGT_TILELAYOUT) return false;
return false;
} else {
/* Limit the building stage to the number of stages supplied. */ /* Limit the building stage to the number of stages supplied. */
const TileLayoutSpriteGroup *tlgroup = (const TileLayoutSpriteGroup *)group; const TileLayoutSpriteGroup *tlgroup = (const TileLayoutSpriteGroup *)group;
byte stage = GetIndustryConstructionStage(ti->tile); byte stage = GetIndustryConstructionStage(ti->tile);
IndustryDrawTileLayout(ti, tlgroup, i->random_colour, stage, gfx); IndustryDrawTileLayout(ti, tlgroup, i->random_colour, stage, gfx);
return true; return true;
}
} }
extern bool IsSlopeRefused(Slope current, Slope refused); extern bool IsSlopeRefused(Slope current, Slope refused);