The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: RESTRICTED ACCOUNT on February 08, 2021, 11:06:31 AM

Title: Way color of monorail on minimap is color index, not rgb
Post by: RESTRICTED ACCOUNT on February 08, 2021, 11:06:31 AM
(´・ω・`)Hi.


if(gr->hat_wege()) {
switch(gr->get_weg_nr(0)->get_waytype()) {
case road_wt: color = COL_ROAD; break;
case tram_wt:
case track_wt: color = COL_RAIL; break;
case water_wt: color = COL_CANAL; break;
case air_wt: color = COL_RUNWAY; break;
case monorail_wt:
default: // all other ways light red ...
color = 135; break;
break;
}
}

Since the index number 135 is specified as it is in the place that should be specified by rgb, the monorail of minimap and other waytype colors are bluish black.
The attached patch will fix it.
Title: Re: Way color of monorail on minimap is color index, not rgb
Post by: Dwachs on February 11, 2021, 07:14:14 PM
thanks for spotting! in r9624