Codechange: Rename SIGTYPE_NORMAL to SIGTYPE_BLOCK (#11788)

This commit is contained in:
Tyler Trahan
2024-01-15 15:27:48 -05:00
committed by GitHub
parent 4a194482ea
commit 68814bd912
7 changed files with 15 additions and 15 deletions

View File

@@ -217,7 +217,7 @@ public:
switch (sig_type) {
case SIGTYPE_COMBO:
case SIGTYPE_EXIT: cost += Yapf().PfGetSettings().rail_firstred_exit_penalty; break; // first signal is red pre-signal-exit
case SIGTYPE_NORMAL:
case SIGTYPE_BLOCK:
case SIGTYPE_ENTRY: cost += Yapf().PfGetSettings().rail_firstred_penalty; break;
default: break;
}

View File

@@ -142,7 +142,7 @@ struct CYapfRailNodeT
if (parent == nullptr) {
m_num_signals_passed = 0;
flags_u.m_inherited_flags = 0;
m_last_red_signal_type = SIGTYPE_NORMAL;
m_last_red_signal_type = SIGTYPE_BLOCK;
/* We use PBS as initial signal type because if we are in
* a PBS section and need to route, i.e. we're at a safe
* waiting point of a station, we need to account for the