1
0
Fork 0

(svn r2794) Fix a comment and get rid of some parentheses using DeMorgan's law

release/0.4.5
tron 2005-08-02 20:04:09 +00:00
parent 0be9459ece
commit 124b352862
1 changed files with 3 additions and 3 deletions

View File

@ -821,11 +821,11 @@ Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode)
TileIndex tile2; TileIndex tile2;
Pair tp; Pair tp;
/* if mode is false, convert into plural */ /* if mode is false, use the singular form */
SetDParam(0, _cargoc.names_s[s->cargo_type] + (mode?0:32)); SetDParam(0, _cargoc.names_s[s->cargo_type] + (mode ? 0 : 32));
if (s->age < 12) { 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(1, STR_INDUSTRY);
SetDParam(2, s->from); SetDParam(2, s->from);
tile = GetIndustry(s->from)->xy; tile = GetIndustry(s->from)->xy;