equal
deleted
inserted
replaced
381 } |
381 } |
382 |
382 |
383 return ApplyMask(MKCOLOR(0x54545454), &_smallmap_vehicles_andor[t]); |
383 return ApplyMask(MKCOLOR(0x54545454), &_smallmap_vehicles_andor[t]); |
384 } |
384 } |
385 |
385 |
386 #define MK(x) MKCOLOR(x << 24 | x << 16 | x << 8 | x) |
|
387 |
|
388 static const uint32 _busyness[] = { |
|
389 MK(15), |
|
390 MK(150), |
|
391 MK(209), |
|
392 MK(206), |
|
393 MK(191), |
|
394 MK(186), |
|
395 MK(184), |
|
396 MK(180), |
|
397 }; |
|
398 |
|
399 |
|
400 /** |
386 /** |
401 * Return the color a tile would be displayed with in the small map in mode "Routes". |
387 * Return the color a tile would be displayed with in the small map in mode "Routes". |
402 * |
388 * |
403 * @param tile The tile of which we would like to get the color. |
389 * @param tile The tile of which we would like to get the color. |
404 * @return The color of tile in the small map in mode "Routes" |
390 * @return The color of tile in the small map in mode "Routes" |
417 case STATION_DOCK: bits = MKCOLOR(0x98989898); break; |
403 case STATION_DOCK: bits = MKCOLOR(0x98989898); break; |
418 default: bits = MKCOLOR(0xFFFFFFFF); break; |
404 default: bits = MKCOLOR(0xFFFFFFFF); break; |
419 } |
405 } |
420 } else { |
406 } else { |
421 /* ground color */ |
407 /* ground color */ |
422 bits = ApplyMask(t == MP_RAILWAY ? _busyness[CountBits(GetStat(tile))] : MKCOLOR(0x54545454), &_smallmap_contours_andor[t]); |
408 bits = ApplyMask(MKCOLOR(0x54545454), &_smallmap_contours_andor[t]); |
423 } |
409 } |
424 return bits; |
410 return bits; |
425 } |
411 } |
426 |
412 |
427 |
413 |