瀏覽代碼

clarification

Snej69420 4 月之前
父節點
當前提交
f288e5dc44
共有 1 個文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      benchmarks/Agents/Intersection.jl

+ 3 - 0
benchmarks/Agents/Intersection.jl

@@ -26,6 +26,9 @@ function output!(agent::PoliceAgent, model)
     elseif agent.state == Directing
         msg = "Release Control"
     end
+    if msg == ""
+        return
+    end
     send_message!(agent, model, :out, msg)
 end