summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-02 20:04:09 +0000
committertron <tron@openttd.org>2005-08-02 20:04:09 +0000
commit124b352862a44f629241dbf0794efd18faefabbe (patch)
treeb61e77eb8a8d22c971b20678a78b94beb91657a0 /economy.c
parent0be9459ece570471cf89eff600815d19799ae6c7 (diff)
downloadopenttd-124b352862a44f629241dbf0794efd18faefabbe.tar.xz
(svn r2794) Fix a comment and get rid of some parentheses using DeMorgan's law
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/economy.c b/economy.c
index 8525818ca..70201fbdc 100644
--- a/economy.c
+++ b/economy.c
@@ -821,11 +821,11 @@ Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode)
TileIndex tile2;
Pair tp;
- /* if mode is false, convert into plural */
- SetDParam(0, _cargoc.names_s[s->cargo_type] + (mode?0:32));
+ /* if mode is false, use the singular form */
+ SetDParam(0, _cargoc.names_s[s->cargo_type] + (mode ? 0 : 32));
if (s->age < 12) {
- if (!(s->cargo_type == CT_PASSENGERS || s->cargo_type == CT_MAIL)) {
+ if (s->cargo_type != CT_PASSENGERS && s->cargo_type != CT_MAIL) {
SetDParam(1, STR_INDUSTRY);
SetDParam(2, s->from);
tile = GetIndustry(s->from)->xy;