… | |
… | |
204 | glTranslate $sx0 - 32, $sy0 - 32, 0; |
204 | glTranslate $sx0 - 32, $sy0 - 32, 0; |
205 | |
205 | |
206 | my ($w, $h, $data) = $::MAP->draw ($sx, $sy, 0, 0, $sw + 1, $sh + 1); |
206 | my ($w, $h, $data) = $::MAP->draw ($sx, $sy, 0, 0, $sw + 1, $sh + 1); |
207 | |
207 | |
208 | if ($::CFG->{fow_enable}) { |
208 | if ($::CFG->{fow_enable}) { |
209 | if ($::CFG->{fow_smooth} && $CFClient::GL_VERSION >= 1.2) { # smooth fog of war |
209 | if ($::CFG->{fow_smooth} && $CFClient::OpenGL::GL_VERSION >= 1.2) { # smooth fog of war |
210 | glConvolutionParameter (GL_CONVOLUTION_2D, GL_CONVOLUTION_BORDER_MODE, GL_CONSTANT_BORDER); |
210 | glConvolutionParameter (GL_CONVOLUTION_2D, GL_CONVOLUTION_BORDER_MODE, GL_CONSTANT_BORDER); |
211 | glConvolutionFilter2D ( |
211 | glConvolutionFilter2D ( |
212 | GL_CONVOLUTION_2D, |
212 | GL_CONVOLUTION_2D, |
213 | GL_ALPHA, |
213 | GL_ALPHA, |
214 | 3, 3, |
214 | 3, 3, |
… | |
… | |
521 | |
521 | |
522 | @match = map $self->{command}{$_->[0]}, |
522 | @match = map $self->{command}{$_->[0]}, |
523 | sort { |
523 | sort { |
524 | $a->[1] <=> $b->[1] |
524 | $a->[1] <=> $b->[1] |
525 | or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4] |
525 | or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4] |
526 | or (length $a->[0]) <=> (length $b->[0]) |
526 | or (length $b->[0]) <=> (length $a->[0]) |
527 | } @match; |
527 | } @match; |
528 | } |
528 | } |
529 | |
529 | |
530 | $self->{last_search} = $cmd; |
530 | $self->{last_search} = $text; |
531 | $self->{last_match} = \@match; |
531 | $self->{last_match} = \@match; |
532 | |
532 | |
533 | $self->{select_offset} = 0; |
533 | $self->{select_offset} = 0; |
534 | } |
534 | } |
535 | |
535 | |