Compare commits
2 Commits
3bf98d1ddf
...
d24717c13a
Author | SHA1 | Date | |
---|---|---|---|
|
d24717c13a | ||
|
a6119b890f |
@ -1 +1 @@
|
|||||||
Subproject commit 121134778a38df672562fd8d1acb1482a327702f
|
Subproject commit e4c55ea4b6f9f5f875d59fc5bba51fc21bc8ef97
|
@ -59,6 +59,9 @@ func ControlTrainUpdate(s *VerifySimulation, ct *request_proto.TrainControl) {
|
|||||||
vobc.TractionStatus = false
|
vobc.TractionStatus = false
|
||||||
vobc.TractionForce = 0
|
vobc.TractionForce = 0
|
||||||
}
|
}
|
||||||
|
if vobc.EmergencyBrakingStatus {
|
||||||
|
vobc.TractionForce = 0
|
||||||
|
}
|
||||||
if sta.ConnState.Conn && sta.ConnState.ConnType == state_proto.TrainConnState_PC_SIM && tce != nil {
|
if sta.ConnState.Conn && sta.ConnState.ConnType == state_proto.TrainConnState_PC_SIM && tce != nil {
|
||||||
train_pc_sim.Default().PublishTrainControlEvent(tce)
|
train_pc_sim.Default().PublishTrainControlEvent(tce)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user