diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-07 09:11:33 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-07 12:10:03 +0200 |
commit | 019355118896b10a29ea3cb994540f74e797a862 (patch) | |
tree | bc45906d3e1bebf1205c5d886d1d5a757854d66b /lib/evendoors | |
parent | 5f7ded6de3e2749962b1a75140440b022e15b92a (diff) | |
download | edoors-ruby-019355118896b10a29ea3cb994540f74e797a862.zip edoors-ruby-019355118896b10a29ea3cb994540f74e797a862.tar.gz |
Board: @spots->@postponed
Diffstat (limited to 'lib/evendoors')
-rw-r--r-- | lib/evendoors/board.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/evendoors/board.rb b/lib/evendoors/board.rb index 110b43f..8442c97 100644 --- a/lib/evendoors/board.rb +++ b/lib/evendoors/board.rb @@ -9,7 +9,7 @@ module EvenDoors def initialize n, p=nil super n, p @saved = nil - @spots = {} + @postponed = {} @parent.add_spot self if @parent end # @@ -27,9 +27,9 @@ module EvenDoors def process_p p @viewer.receive_p p if @viewer if p.action!=EvenDoors::ACT_ERROR - p2 = @spots[p.link_value] ||= p + p2 = @postponed[p.link_value] ||= p return if p2==p - @spots.delete p.link_value + @postponed.delete p.link_value p,p2 = p2,p if p.action==EvenDoors::ACT_FOLLOW p.merge! p2 end |