(svn r3564) Several smaller changes:
- Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements
This commit is contained in:
@@ -1469,10 +1469,11 @@ static void DrawTile_Track(TileInfo *ti)
|
||||
DrawGroundSprite(image);
|
||||
|
||||
foreach_draw_tile_seq(seq, cust->seq) {
|
||||
uint32 image = seq->image + relocation;
|
||||
DrawSpecialBuilding(image, 0, ti,
|
||||
seq->delta_x, seq->delta_y, seq->delta_z,
|
||||
seq->width, seq->height, seq->unk);
|
||||
DrawSpecialBuilding(
|
||||
seq->image + relocation, 0, ti,
|
||||
seq->delta_x, seq->delta_y, seq->delta_z,
|
||||
seq->width, seq->height, seq->unk
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user