jonathanGB/faulty-robots-simulation

updateOrigin is buggy

Closed this issue · 4 comments

weird behaviour, need to investigate the root cause

bug appears at this commit

note too that if (robot == this.hasBubble) { is a bad check in updateOrigin

this.robots.delete(this.hasBubble.data.label._content); this line would remove the replaced robot from the map, ulterior calls to updateOrigin would not see it.

Fixed!