(svn r2794) Fix a comment and get rid of some parentheses using DeMorgan's law
authortron
Tue, 02 Aug 2005 20:04:09 +0000
changeset 2272 fc701f21b2be
parent 2271 e13e228a0930
child 2273 95dd61d9ca47
(svn r2794) Fix a comment and get rid of some parentheses using DeMorgan's law
economy.c
--- a/economy.c	Tue Aug 02 19:38:18 2005 +0000
+++ b/economy.c	Tue Aug 02 20:04:09 2005 +0000
@@ -821,11 +821,11 @@
 	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;