diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 12:03:26 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 12:03:26 +0200 |
commit | 2bdb8ddbfa1412b35417c71297d64c3d2c0a2a03 (patch) | |
tree | e512f4ab89dd3e1ffa4bbc8efb80b9c42280cfb7 /lib/evendoors/room.rb | |
parent | 3533c7e7652af547338c364e03070d84d75d9cbd (diff) | |
download | edoors-ruby-2bdb8ddbfa1412b35417c71297d64c3d2c0a2a03.zip edoors-ruby-2bdb8ddbfa1412b35417c71297d64c3d2c0a2a03.tar.gz |
Room: cleanup sned_sys_p
Diffstat (limited to 'lib/evendoors/room.rb')
-rw-r--r-- | lib/evendoors/room.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb index e947a70..490bddf 100644 --- a/lib/evendoors/room.rb +++ b/lib/evendoors/room.rb @@ -111,14 +111,12 @@ module EvenDoors puts " * send_sys_p #{(p.next_dst.nil? ? 'no dst' : p.next_dst)} ..." if EvenDoors::Twirl.debug if p.next_dst p.split_dst! - if p.door.empty? - if p.action.nil? - p.error! EvenDoors::ERROR_ROUTE_SNDNA - else - p.dst_routed! space - end - else + if p.door 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 |