News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Way color of monorail on minimap is color index, not rgb

Started by RESTRICTED ACCOUNT, February 08, 2021, 11:06:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RESTRICTED ACCOUNT

(´・ω・`)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.

Dwachs

Parsley, sage, rosemary, and maggikraut.