1
0
Fork 0

(svn r20944) -Codechange: Bail out early in DrawBridgePillars(). (uni657)

release/1.1
frosch 2010-10-16 15:35:32 +00:00
parent 58ed553068
commit 3866d8e2d1
1 changed files with 32 additions and 33 deletions

View File

@ -845,8 +845,8 @@ static void DrawBridgePillars(const PalSpriteID *psid, const TileInfo *ti, Axis
static const int back_pillar_offset[2] = { 0, 9}; ///< sprite position offset of back facing pillar
SpriteID image = psid->sprite;
if (image == 0) return;
if (image != 0) {
/* "side" specifies the side the pillars stand on.
* The length of the pillars is then set to the height of the bridge over the corners of this edge.
*
@ -886,7 +886,6 @@ static void DrawBridgePillars(const PalSpriteID *psid, const TileInfo *ti, Axis
}
}
}
}
/**
* Draws the trambits over an already drawn (lower end) of a bridge.