Skip to content

Commit

Permalink
Move one line of code
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpalmer committed Jan 10, 2011
1 parent 54cece5 commit 987d8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Games/Sokoban/SDL.pm
Expand Up @@ -42,8 +42,8 @@ sub init_level {
foreach my $row ( $level->as_lines ) {
$x = 0;
foreach my $element ( split //, $row ) {
$grid->[$x][$y] = $element;
given ($element) {
$grid->[$x][$y] = $_;
when ('#') {
$wall->blit( $background, undef,
[ $x * $size, $y * $size, $size, $size ] );
Expand Down

0 comments on commit 987d8fe

Please sign in to comment.