390 TileType t = GetEffectiveTileType(tile); |
391 TileType t = GetEffectiveTileType(tile); |
391 |
392 |
392 return ApplyMask(MKCOLOR(0x54545454), &_smallmap_vehicles_andor[t]); |
393 return ApplyMask(MKCOLOR(0x54545454), &_smallmap_vehicles_andor[t]); |
393 } |
394 } |
394 |
395 |
395 /* Industry colours... a total of 175 gfx - XXX - increase if more industries */ |
|
396 static const byte _industry_smallmap_colors[175] = { |
|
397 215, 215, 215, 215, 215, 215, 215, 184, |
|
398 184, 184, 184, 194, 194, 194, 194, 194, |
|
399 86, 86, 191, 191, 191, 191, 191, 191, |
|
400 152, 152, 152, 152, 152, 152, 152, 152, |
|
401 152, 48, 48, 48, 48, 48, 48, 174, |
|
402 174, 174, 174, 174, 174, 174, 174, 10, |
|
403 10, 10, 10, 10, 10, 10, 10, 10, |
|
404 10, 10, 15, 15, 55, 55, 55, 55, |
|
405 10, 10, 10, 10, 10, 10, 10, 10, |
|
406 194, 194, 194, 194, 194, 194, 194, 194, |
|
407 194, 194, 194, 194, 194, 194, 194, 194, |
|
408 194, 15, 15, 184, 184, 184, 184, 184, |
|
409 184, 184, 184, 184, 55, 55, 55, 55, |
|
410 55, 55, 55, 55, 55, 55, 55, 55, |
|
411 55, 55, 55, 55, 86, 39, 37, 37, |
|
412 208, 174, 174, 174, 174, 194, 194, 194, |
|
413 194, 48, 48, 174, 174, 174, 174, 39, |
|
414 39, 55, 208, 208, 208, 208, 10, 10, |
|
415 10, 10, 10, 10, 37, 37, 37, 37, |
|
416 37, 37, 37, 37, 184, 184, 184, 184, |
|
417 152, 152, 152, 152, 194, 194, 194, 15, |
|
418 15, 15, 15, 15, 15, 15, 15, |
|
419 }; |
|
420 |
|
421 /** |
396 /** |
422 * Return the color a tile would be displayed with in the small map in mode "Industries". |
397 * Return the color a tile would be displayed with in the small map in mode "Industries". |
423 * |
398 * |
424 * @param tile The tile of which we would like to get the color. |
399 * @param tile The tile of which we would like to get the color. |
425 * @return The color of tile in the small map in mode "Industries" |
400 * @return The color of tile in the small map in mode "Industries" |