From 86a09a1f49744002a81702d16600171fc8407552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 May 2012 15:06:23 +0200 Subject: Room: system no door, no action excpetion can't be raised anymore --- lib/evendoors.rb | 1 - lib/evendoors/room.rb | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/evendoors.rb b/lib/evendoors.rb index bf7a99b..bab656e 100644 --- a/lib/evendoors.rb +++ b/lib/evendoors.rb @@ -26,7 +26,6 @@ module EvenDoors ERROR_ROUTE_TRWR = 'routing error: top room, wrong room'.freeze ERROR_ROUTE_NDNL = 'routing error: no destination, no link'.freeze ERROR_ROUTE_SND = 'routing error: system no destination'.freeze - ERROR_ROUTE_SNDNA = 'routing error: system no door, no action'.freeze # class Exception < ::Exception; end # diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb index 71c8971..bc9ee63 100644 --- a/lib/evendoors/room.rb +++ b/lib/evendoors/room.rb @@ -116,8 +116,6 @@ module EvenDoors route_p p elsif p.action p.dst_routed! space - else - p.error! EvenDoors::ERROR_ROUTE_SNDNA end else p.error! EvenDoors::ERROR_ROUTE_SND -- cgit v1.1-2-g2b99