diff options
author | nikolas <nikolas@gnu.org> | 2019-01-11 10:08:02 -0500 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-01-11 16:08:02 +0100 |
commit | fa95af2da8ddca0ddcef2b2e1a781818c8dd08da (patch) | |
tree | 5b754237b24f3f988099bc1a15d4d22e6bfd1471 | |
parent | f99f993e99b662fe3621013d3468c3d75a12ecac (diff) | |
download | openttd-fa95af2da8ddca0ddcef2b2e1a781818c8dd08da.tar.xz |
Codechange: Fix typo in variable name: pices -> pieces (#7033)
-rw-r--r-- | src/company_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index ac9ca9bda..c62c6d61c 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -2194,16 +2194,16 @@ struct CompanyWindow : Window uint y = r.top; /* Collect rail and road counts. */ - uint rail_pices = c->infrastructure.signal; + uint rail_pieces = c->infrastructure.signal; uint road_pieces = 0; - for (uint i = 0; i < lengthof(c->infrastructure.rail); i++) rail_pices += c->infrastructure.rail[i]; + for (uint i = 0; i < lengthof(c->infrastructure.rail); i++) rail_pieces += c->infrastructure.rail[i]; for (uint i = 0; i < lengthof(c->infrastructure.road); i++) road_pieces += c->infrastructure.road[i]; - if (rail_pices == 0 && road_pieces == 0 && c->infrastructure.water == 0 && c->infrastructure.station == 0 && c->infrastructure.airport == 0) { + if (rail_pieces == 0 && road_pieces == 0 && c->infrastructure.water == 0 && c->infrastructure.station == 0 && c->infrastructure.airport == 0) { DrawString(r.left, r.right, y, STR_COMPANY_VIEW_INFRASTRUCTURE_NONE); } else { - if (rail_pices != 0) { - SetDParam(0, rail_pices); + if (rail_pieces != 0) { + SetDParam(0, rail_pieces); DrawString(r.left, r.right, y, STR_COMPANY_VIEW_INFRASTRUCTURE_RAIL); y += FONT_HEIGHT_NORMAL; } |