Parcourir la source

clarification

Snej69420 il y a 4 mois
Parent
commit
f288e5dc44
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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