Hemiptera Bugtracker at bugs.linux-forks.de

advtrains

Signal aspect should be simplified

Send replies to 132@bugs.linux-forks.de or using the Form below.
avatar From: OP
Wed, 18 Sep 2019 17:50:01 -0000

The current signal aspect table is

asp = {

main = {

free = <bool>,

speed = <int ATC>,

},

dst = {

free = <bool>,

speed = <int ATC>,

},

shunt = {

free = <bool>,

proceed_as_main = <bool>,

},

info = {

call_on = <bool>,

dead_end = <bool>,

w_speed = <int>

}

}

The problem is the complexity of the table and the fact that asp.*.speed can and (IMHO) should control asp.*.free, making asp.*.free unnecessary. Afaik this should be enough:

asp = {

main = <int ATC>,

dst = <int ATC>,

shunt = {

free = <bool>,

proceed_as_main = <bool>,

},

info = {

call_on = <bool>,

dead_end = <bool>,

w_speed = <int>

}

}

Reply