News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

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

Started by Ranran(retired), February 08, 2021, 11:06:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

(´・ω・`)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.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Dwachs

Parsley, sage, rosemary, and maggikraut.