新增1.0和2.0两种协议车型车型
This commit is contained in:
@@ -1058,6 +1058,22 @@ namespace StandardScene.Chained
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
try
|
||||
{
|
||||
car.tags.Remove("occupied");
|
||||
if (car is Car trafficCar && car.GetLastSite() > 0)
|
||||
{
|
||||
var currentSite = SimpleLib.GetSite(car.GetLastSite());
|
||||
if (currentSite != null)
|
||||
{
|
||||
trafficCar.TrafficReset(currentSite, true, strict: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
// 记录异常并等待后重试
|
||||
Diagnosis.Post(
|
||||
$"{car.name}循环任务报错{ExceptionFormatter.FormatEx(ex)}--去往循环点id:{targetSite.id},name:{targetSite.name}",
|
||||
|
||||
Reference in New Issue
Block a user