From 019355118896b10a29ea3cb994540f74e797a862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 7 May 2012 09:11:33 +0200 Subject: Board: @spots->@postponed --- lib/evendoors/board.rb | 6 +++--- 1 file 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 -- cgit v1.1-2-g2b99