mirror of https://github.com/OpenTTD/OpenTTD.git
Remove: logically dead code in graph UI
This commit is contained in:
parent
0d0375c019
commit
85faa218ff
|
@ -963,7 +963,7 @@ struct PaymentRatesGraphWindow : BaseGraphWindow {
|
|||
bool lowered = !HasBit(_legend_excluded_cargo, cs->Index());
|
||||
|
||||
/* Redraw box if lowered */
|
||||
if (lowered) DrawFrameRect(r.left, y, r.right, y + this->line_height - 1, COLOUR_BROWN, lowered ? FR_LOWERED : FR_NONE);
|
||||
if (lowered) DrawFrameRect(r.left, y, r.right, y + this->line_height - 1, COLOUR_BROWN, FR_LOWERED);
|
||||
|
||||
byte clk_dif = lowered ? 1 : 0;
|
||||
int rect_x = clk_dif + (rtl ? r.right - this->legend_width - WD_FRAMERECT_RIGHT : r.left + WD_FRAMERECT_LEFT);
|
||||
|
|
Loading…
Reference in New Issue