The International Simutrans Forum

 

Author Topic: Way color of monorail on minimap is color index, not rgb  (Read 120 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1465
  • Languages: ja
Way color of monorail on minimap is color index, not rgb
« on: February 08, 2021, 11:06:31 AM »
(´・ω・`)Hi.

Code: [Select]
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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4849
  • Languages: EN, DE, AT
Re: Way color of monorail on minimap is color index, not rgb
« Reply #1 on: February 11, 2021, 07:14:14 PM »
thanks for spotting! in r9624