【修改判断条件】
This commit is contained in:
parent
d085dafd74
commit
8a78cfa830
|
@ -165,7 +165,7 @@ func convert(info *dynamics.TrainInfo, sta *state.TrainState, simulation *memory
|
|||
sta.HeadDirection = !runDirection
|
||||
}
|
||||
}
|
||||
if sta.Speed < 0 {
|
||||
if info.Speed < 0 {
|
||||
sta.RunDirection = !sta.RunDirection
|
||||
}
|
||||
// 赋值动力学信息
|
||||
|
|
Loading…
Reference in New Issue