ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/minesweeper.ext
(Generate patch)

Comparing deliantra/maps/perl/minesweeper.ext (file contents):
Revision 1.7 by root, Fri Mar 31 22:47:19 2006 UTC vs.
Revision 1.8 by root, Mon Aug 21 04:04:17 2006 UTC

25 my ($x, $y) = ($who->x - $meta->x, $who->y - $meta->y); 25 my ($x, $y) = ($who->x - $meta->x, $who->y - $meta->y);
26 26
27 $who->{visible} = 1; 27 $who->{visible} = 1;
28 28
29 if ($who->{bomb}) { 29 if ($who->{bomb}) {
30 result $meta, "failure"; 30 result $meta, "failure"
31 if $meta->{todo};
31 } else { 32 } else {
32 $meta->{todo}--; 33 $meta->{todo}--;
33 # if zero, finished 34 # if <= 0, finished
34 35
35 my @neigh; 36 my @neigh;
36 37
37 for my $y ($y - 1 .. $y + 1) { 38 for my $y ($y - 1 .. $y + 1) {
38 next if $y < 0 || $y > $#{$map->[0]}; 39 next if $y < 0 || $y > $#{$map->[0]};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines