Electrification resolution tweaks
+Added an option to disable electrification resolution conflicts propagation in Constants *Tweaked non applied NEVP warning text
This commit is contained in:
parent
7f908f24ab
commit
4db9fef68c
@ -13,6 +13,7 @@ const Constants = {
|
||||
alwaysShowLogDialog: false,
|
||||
runTracksConnectionTest: false,
|
||||
resolveElectrification: true,
|
||||
skipElectrificationErrorsPropagation: false,
|
||||
maxRouteConnectionDistance: 0.2,
|
||||
attachSigns: true,
|
||||
attachSignsNeedsSameTrack: false,
|
||||
|
||||
@ -101,7 +101,7 @@ export default class ElectrificationResolver {
|
||||
if(!trackObject.track) {
|
||||
ElectrificationResolver._passWarn(
|
||||
'electrificationNevpNotApplied',
|
||||
`NEVP object ${trackObject.id} at track ${trackObject.track_id} has not beed applied. Electrification resolution may fail`
|
||||
`NEVP object ${trackObject.name} (${trackObject.id}) at track ${trackObject.track_id} has not been applied. Electrification resolution may fail`
|
||||
);
|
||||
return;
|
||||
}
|
||||
@ -112,6 +112,9 @@ export default class ElectrificationResolver {
|
||||
|
||||
static _propagate(scenery, track, skipTrackIds, status) {
|
||||
if (track.electrificationStatus === status) return; // already set
|
||||
if (Constants.parser.skipElectrificationErrorsPropagation && status === ElectrificationStatus.CONFLICT) {
|
||||
return;
|
||||
}
|
||||
|
||||
const fse = status === ElectrificationStatus.ELECTRIFIED;
|
||||
const fsne = status === ElectrificationStatus.NON_ELECTRIFIED;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user