139 SetDParam(1, t->index); |
139 SetDParam(1, t->index); |
140 } |
140 } |
141 GetString(_landinfo_data[4], STR_01A8_LOCAL_AUTHORITY, lastof(_landinfo_data[4])); |
141 GetString(_landinfo_data[4], STR_01A8_LOCAL_AUTHORITY, lastof(_landinfo_data[4])); |
142 |
142 |
143 { |
143 { |
144 int i; |
|
145 char *p = GetString(_landinfo_data[5], STR_01CE_CARGO_ACCEPTED, lastof(_landinfo_data[5])); |
144 char *p = GetString(_landinfo_data[5], STR_01CE_CARGO_ACCEPTED, lastof(_landinfo_data[5])); |
146 bool found = false; |
145 bool found = false; |
147 |
146 |
148 for (i = 0; i < NUM_CARGO; ++i) { |
147 for (CargoID i = 0; i < NUM_CARGO; ++i) { |
149 if (ac[i] > 0) { |
148 if (ac[i] > 0) { |
150 /* Add a comma between each item. */ |
149 /* Add a comma between each item. */ |
151 if (found) { |
150 if (found) { |
152 *p++ = ','; |
151 *p++ = ','; |
153 *p++ = ' '; |
152 *p++ = ' '; |
186 DEBUG(misc, LANDINFOD_LEVEL, "m2 = %#x", _m[tile].m2); |
185 DEBUG(misc, LANDINFOD_LEVEL, "m2 = %#x", _m[tile].m2); |
187 DEBUG(misc, LANDINFOD_LEVEL, "m3 = %#x", _m[tile].m3); |
186 DEBUG(misc, LANDINFOD_LEVEL, "m3 = %#x", _m[tile].m3); |
188 DEBUG(misc, LANDINFOD_LEVEL, "m4 = %#x", _m[tile].m4); |
187 DEBUG(misc, LANDINFOD_LEVEL, "m4 = %#x", _m[tile].m4); |
189 DEBUG(misc, LANDINFOD_LEVEL, "m5 = %#x", _m[tile].m5); |
188 DEBUG(misc, LANDINFOD_LEVEL, "m5 = %#x", _m[tile].m5); |
190 DEBUG(misc, LANDINFOD_LEVEL, "m6 = %#x", _m[tile].m6); |
189 DEBUG(misc, LANDINFOD_LEVEL, "m6 = %#x", _m[tile].m6); |
|
190 DEBUG(misc, LANDINFOD_LEVEL, "m7 = %#x", _me[tile].m7); |
191 #undef LANDINFOD_LEVEL |
191 #undef LANDINFOD_LEVEL |
192 } |
192 } |
193 |
193 |
194 void PlaceLandBlockInfo() |
194 void PlaceLandBlockInfo() |
195 { |
195 { |
729 static void DrawStationCoverageText(const AcceptedCargo accepts, |
729 static void DrawStationCoverageText(const AcceptedCargo accepts, |
730 int str_x, int str_y, uint mask) |
730 int str_x, int str_y, uint mask) |
731 { |
731 { |
732 char *b = _userstring; |
732 char *b = _userstring; |
733 bool first = true; |
733 bool first = true; |
734 int i; |
|
735 |
734 |
736 b = InlineString(b, STR_000D_ACCEPTS); |
735 b = InlineString(b, STR_000D_ACCEPTS); |
737 |
736 |
738 for (i = 0; i != NUM_CARGO; i++, mask >>= 1) { |
737 for (CargoID i = 0; i < NUM_CARGO; i++, mask >>= 1) { |
739 if (b >= lastof(_userstring) - 5) break; |
738 if (b >= lastof(_userstring) - 5) break; |
740 if (accepts[i] >= 8 && mask & 1) { |
739 if (accepts[i] >= 8 && mask & 1) { |
741 if (first) { |
740 if (first) { |
742 first = false; |
741 first = false; |
743 } else { |
742 } else { |