Skip to content
Snippets Groups Projects
Commit 79a1aeb6 authored by Balthazar Wilson's avatar Balthazar Wilson
Browse files

fix: spy agent could'nt share suspects

parent 3fea315a
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ func (spy *SpyAgent) Deliberate() {
for _, coords := range canInteractCop { // share suspects to cop
// si on ne lui a pas parlé récemment, on peut lui partager notre liste de suspects
ag, _ := spy.world.Load(coords)
if _, exists := spy.cooldownCop[ag.(*CopAgent)]; !exists {
if _, exists := spy.cooldownCop[ag.(*CopAgent)]; exists {
spy.decision = ShareSuspects
spy.goalCoords = coords
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment