Skip to content

Commit

Permalink
Fix reversed width and height.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpalmer committed Oct 8, 2010
1 parent d0b2189 commit 3bdb5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Games/Maze/SDL/Model/Maze.pm
Expand Up @@ -169,8 +169,8 @@ sub cell_walls {


my $min_x = ( $x - 1 ) * $self->cell_width; my $min_x = ( $x - 1 ) * $self->cell_width;
my $min_y = ( $y - 1 ) * $self->cell_height; my $min_y = ( $y - 1 ) * $self->cell_height;
my $max_x = $min_x + $self->cell_height; my $max_x = $min_x + $self->cell_width;
my $max_y = $min_y + $self->cell_width; my $max_y = $min_y + $self->cell_height;


my @walls; my @walls;


Expand Down

0 comments on commit 3bdb5b3

Please sign in to comment.