ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.177 by root, Tue Apr 10 10:13:10 2007 UTC vs.
Revision 1.179 by root, Wed Apr 11 04:32:51 2007 UTC

701Mix_AllocateChannels (int numchans = -1) 701Mix_AllocateChannels (int numchans = -1)
702 702
703void 703void
704lowdelay (int fd, int val = 1) 704lowdelay (int fd, int val = 1)
705 CODE: 705 CODE:
706#ifndef _WIN32
707 setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof (val)); 706 setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, (void *)&val, sizeof (val));
708#endif
709 707
710void 708void
711win32_proxy_info () 709win32_proxy_info ()
712 PPCODE: 710 PPCODE:
713{ 711{
1567draw (CFPlus::Map self, int mx, int my, int sw, int sh, int T) 1565draw (CFPlus::Map self, int mx, int my, int sw, int sh, int T)
1568 CODE: 1566 CODE:
1569{ 1567{
1570 HV *smooth = (HV *)sv_2mortal ((SV *)newHV ()); 1568 HV *smooth = (HV *)sv_2mortal ((SV *)newHV ());
1571 uint32_t smooth_level[256 / 32]; // one bit for every possible smooth level 1569 uint32_t smooth_level[256 / 32]; // one bit for every possible smooth level
1572 uint8_t smooth_max[256][256]; 1570 static uint8_t smooth_max[256][256]; // egad, fats and wasteful on memory (64k)
1573 smooth_key skey; 1571 smooth_key skey;
1574 int x, y, z; 1572 int x, y, z;
1575 int last_name; 1573 int last_name;
1576 1574
1577 // thats current max. sorry. 1575 // thats current max. sorry.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines