Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[bin/crypt] simplified hash access
thou++
  • Loading branch information
Carl Masak committed Jul 20, 2012
1 parent 3c8d86f commit 72ccf82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/crypt
Expand Up @@ -515,10 +515,7 @@ class Adventure::Engine {
unless defined $!player_location;

my $actual_direction =
%!exit_aliases.exists($!player_location)
&& %!exit_aliases{$!player_location}.exists($direction)
?? %!exit_aliases{$!player_location}{$direction}
!! $direction;
%!exit_aliases{$!player_location}{$direction} // $direction;

my $to = %!exits{$!player_location}{$actual_direction};

Expand Down

0 comments on commit 72ccf82

Please sign in to comment.