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

Comparing deliantra/maps/perl/schmorp-clientchk.ext (file contents):
Revision 1.3 by root, Fri Aug 25 13:24:06 2006 UTC vs.
Revision 1.4 by root, Mon Oct 2 21:19:17 2006 UTC

10 10
11 my $is_cf = $client =~ /^(?:GTK|X11) (?:Unix|Win32) Client ([.0-9]+)/ 11 my $is_cf = $client =~ /^(?:GTK|X11) (?:Unix|Win32) Client ([.0-9]+)/
12 ? join "", map chr, split /\./, $1 12 ? join "", map chr, split /\./, $1
13 : undef; 13 : undef;
14 14
15 my $is_jx = $client =~ /^JCrossclient 1.0 alpha-(\d+)/
16 ? join "", map chr, split /\./, $1
17 : undef;
18
15 if ($is_cf && $is_cf lt v1.9.2) { 19 if ($is_cf) { # && $is_cf lt v1.9.2) {
16 $pl->ob->message ("(enabling workaround for client buffer overflow)", cf::NDI_RED | cf::NDI_UNIQUE); 20 $pl->ob->message ("(enabling workaround for client buffer overflow)", cf::NDI_RED | cf::NDI_UNIQUE);
17 $pl->buggy_mapscroll; 21 $pl->buggy_mapscroll;
22 }
23
24 if ($is_jx) {
25 $pl->ob->message ("(enabling buggy map scroll workaround)", cf::NDI_RED | cf::NDI_UNIQUE);
26 $pl->buggy_mapscroll;
27 }
28
29 if ($is_jx) {
30 $pl->ob->message ("You are using a known to be buggy client (an alpha version, too). "
31 . "If you encounter map freezes or other bugs, consider using a more stable client "
32 . "such as CFPlus or gcfclient or gcfclient2");
18 } 33 }
19 34
20 if ($is_cf && $is_cf lt v1.9.1) { 35 if ($is_cf && $is_cf lt v1.9.1) {
21 $pl->ob->message (<<EOF, cf::NDI_RED | cf::NDI_UNIQUE); 36 $pl->ob->message (<<EOF, cf::NDI_RED | cf::NDI_UNIQUE);
22 37

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines