Skip to content
Browse files

Fix reversed width and height.

  • Loading branch information...
1 parent d0b2189 commit 3bdb5b333af76b17fb69d561eb0e7c9859e2889a @jtpalmer committed Oct 8, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Games/Maze/SDL/Model/Maze.pm
View
4 lib/Games/Maze/SDL/Model/Maze.pm
@@ -169,8 +169,8 @@ sub cell_walls {
my $min_x = ( $x - 1 ) * $self->cell_width;
my $min_y = ( $y - 1 ) * $self->cell_height;
- my $max_x = $min_x + $self->cell_height;
- my $max_y = $min_y + $self->cell_width;
+ my $max_x = $min_x + $self->cell_width;
+ my $max_y = $min_y + $self->cell_height;
my @walls;

0 comments on commit 3bdb5b3

Please sign in to comment.
Something went wrong with that request. Please try again.