1 | #! perl # MANDATORY |
1 | #! perl # mandatory |
2 | |
2 | |
3 | # check client version and string for old clients and possibly issue warnings for them |
3 | # check client version and string for old clients and possibly issue warnings for them |
4 | |
4 | |
5 | cf::client->attach ( |
5 | cf::client->attach ( |
6 | on_addme => sub { |
6 | on_addme => sub { |
… | |
… | |
22 | $ns->send_drawinfo ("(disabling bg image scrub because of buggy client)", cf::NDI_RED); |
22 | $ns->send_drawinfo ("(disabling bg image scrub because of buggy client)", cf::NDI_RED); |
23 | $ns->enable_bg_scrub (0); |
23 | $ns->enable_bg_scrub (0); |
24 | |
24 | |
25 | $ns->send_drawinfo ("(enabling workaround for client buffer overflow on scroll)", cf::NDI_RED); |
25 | $ns->send_drawinfo ("(enabling workaround for client buffer overflow on scroll)", cf::NDI_RED); |
26 | $ns->buggy_mapscroll (1); |
26 | $ns->buggy_mapscroll (1); |
|
|
27 | |
|
|
28 | $ns->send_drawinfo ("(enabling workaround for map redraw bug)", cf::NDI_RED); |
|
|
29 | $ns->force_image_newmap (1); |
27 | |
30 | |
28 | $ns->send_drawinfo ("(enabling workaround for broken face caching in client)", cf::NDI_RED); |
31 | $ns->send_drawinfo ("(enabling workaround for broken face caching in client)", cf::NDI_RED); |
29 | $ns->force_bad_checksum (1); |
32 | $ns->force_bad_checksum (1); |
30 | } |
33 | } |
31 | |
34 | |