diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-07 11:59:07 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-07 11:59:07 +0200 |
commit | 1dcb050420e6dd3f1b9bb43c1fb24b0c38286ca2 (patch) | |
tree | d5805b75f17f2d329676268a089bd1c6459dfe33 | |
parent | 3b472b735061cc1de5768a5b0c64af2facc73bc9 (diff) | |
download | edoors-ruby-1dcb050420e6dd3f1b9bb43c1fb24b0c38286ca2.zip edoors-ruby-1dcb050420e6dd3f1b9bb43c1fb24b0c38286ca2.tar.gz |
Board must delete merged particles from @spots
-rw-r--r-- | lib/evendoors/board.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/evendoors/board.rb b/lib/evendoors/board.rb index bc74721..110b43f 100644 --- a/lib/evendoors/board.rb +++ b/lib/evendoors/board.rb @@ -29,6 +29,7 @@ module EvenDoors if p.action!=EvenDoors::ACT_ERROR p2 = @spots[p.link_value] ||= p return if p2==p + @spots.delete p.link_value p,p2 = p2,p if p.action==EvenDoors::ACT_FOLLOW p.merge! p2 end |