【修改判断条件】

This commit is contained in:
weizhihong 2023-09-05 16:35:45 +08:00
parent d085dafd74
commit 8a78cfa830
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
// 赋值动力学信息