Explorar el Código

clarification

Snej69420 hace 4 meses
padre
commit
f288e5dc44
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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