修改重置应答器报文bug;修改转发列车控制消息逻辑bug

This commit is contained in:
joylink_zhangsai 2024-01-23 09:19:01 +08:00
parent f6a6ef3175
commit f96797d6e3
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 126ba5a7619f6c55f893683dd5a0a86a30b25bec
Subproject commit 3a30efc9fe949cd5ab9898073f00a093716f279e

View File

@ -166,6 +166,7 @@ func baliseTelegramReset(simulation *VerifySimulation, balise *repository.Transp
entry, _ := entity.GetEntityByUid(simulation.World, balise.Id())
component.BaliseFixedTelegramType.SetValue(entry, component.BaliseState{
Telegram: balise.FixedTelegram(),
UserTelegram: balise.FixedUserTelegram(),
})
return nil
}

View File

@ -381,7 +381,7 @@ func (s *VerifySimulation) HandleSemiPhysicalTrainControlMsg(b []byte) {
s.Memory.Status.TrainStateMap.Range(func(_, value any) bool {
train := value.(*state_proto.TrainState)
if !train.Show { // 下线列车
return false
return true
}
trainId, err := strconv.Atoi(train.Id)
if err != nil {