… | |
… | |
471 | |
471 | |
472 | if ($show) { |
472 | if ($show) { |
473 | if ($new & $self->{cursor_mask}) { |
473 | if ($new & $self->{cursor_mask}) { |
474 | delete $self->{cursorpos}; |
474 | delete $self->{cursorpos}; |
475 | } else { |
475 | } else { |
476 | $new = $new & $self->{cursor_mask} | $self->{cursor_value}; |
476 | $new = $new & ~$self->{cursor_mask} | $self->{cursor_value}; |
477 | } |
477 | } |
478 | } |
478 | } |
479 | |
479 | |
480 | local $self->{board}{board}[$x-1][$y-1] = $new; |
480 | local $self->{board}{board}[$x-1][$y-1] = $new; |
481 | $self->{window}->clear_area (@{ $self->{draw_stone}->($x, $y) }); |
481 | $self->{window}->clear_area (@{ $self->{draw_stone}->($x, $y) }); |