File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 5757 CHG: (poppo) jump tool now allows also for z coordinaate
5858 FIX: (poppo) last tool not show when too many tools to fit
5959 ADD: searchable comboboxes; for editing click twice
60+ CHG: Stops that are not connected to any other stops now have a blue status colour
6061
6162
6263Release of 124.3.1 (r11671 on 5-Apr-2025):
Original file line number Diff line number Diff line change @@ -3116,12 +3116,18 @@ void haltestelle_t::recalc_status()
31163116 }
31173117 }
31183118
3119- // take the worst color for status
3120- if ( status_bits ) {
3119+ const bool has_any_activity = (financial_history[0 ][HALT_WAITING] + financial_history[0 ][HALT_DEPARTED] + financial_history[0 ][HALT_ARRIVED]) > 0 ;
3120+ const bool is_connected = !registered_convoys.empty () || !registered_lines.empty ();
3121+
3122+ if (!is_connected) {
3123+ status_color = color_idx_to_rgb (COL_NO_ROUTE);
3124+ }
3125+ else if (status_bits != 0 ) {
3126+ // take the worst color for status
31213127 status_color = color_idx_to_rgb (status_bits&2 ? COL_RED : COL_ORANGE);
31223128 }
31233129 else {
3124- status_color = color_idx_to_rgb ((financial_history[ 0 ][HALT_WAITING]+financial_history[ 0 ][HALT_DEPARTED] == 0 ) ? COL_YELLOW : COL_GREEN );
3130+ status_color = color_idx_to_rgb (has_any_activity ? COL_GREEN : COL_YELLOW );
31253131 }
31263132
31273133 financial_history[0 ][HALT_WAITING] = total_sum;
You can’t perform that action at this time.
0 commit comments