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.167 by root, Sat Dec 9 02:21:25 2006 UTC vs.
Revision 1.170 by root, Sun Mar 4 19:36:08 2007 UTC

1#ifdef _WIN32 1#ifdef _WIN32
2# define WIN32_LEAN_AND_MEAN 2# define WIN32_LEAN_AND_MEAN
3# define _WIN32_WINNT 0x0500 // needed to get win2000 api calls 3# define NTDDI_VERSION NTDDI_WIN2K // needed to get win2000 api calls
4# include <malloc.h> 4# include <malloc.h>
5# include <windows.h> 5# include <windows.h>
6# include <wininet.h> 6# include <wininet.h>
7# pragma warning(disable:4244) 7# pragma warning(disable:4244)
8# pragma warning(disable:4761) 8# pragma warning(disable:4761)
14 14
15#ifdef _WIN32 15#ifdef _WIN32
16# undef pipe 16# undef pipe
17#endif 17#endif
18 18
19#include <assert.h>
19#include <math.h> 20#include <math.h>
20#include <string.h> 21#include <string.h>
21#include <stdio.h> 22#include <stdio.h>
22#include <stdlib.h> 23#include <stdlib.h>
23 24
492 493
493 assert (SDLK_MODIFIER_MIN == SDLK_NUMLOCK); 494 assert (SDLK_MODIFIER_MIN == SDLK_NUMLOCK);
494 assert (SDLK_MODIFIER_MAX == SDLK_COMPOSE); 495 assert (SDLK_MODIFIER_MAX == SDLK_COMPOSE);
495} 496}
496 497
498void
499weaken (SV *rv)
500 PROTOTYPE: $
501 CODE:
502 sv_rvweaken (rv);
503
497int 504int
498in_destruct () 505in_destruct ()
499 CODE: 506 CODE:
500 RETVAL = PL_main_cv == Nullcv; 507 RETVAL = PL_main_cv == Nullcv;
501 OUTPUT: 508 OUTPUT:
1405 cell->stat_width = 1; 1412 cell->stat_width = 1;
1406 cell->stat_hp = *data++; 1413 cell->stat_hp = *data++;
1407 } 1414 }
1408 else if (cmd == 6) // monster width 1415 else if (cmd == 6) // monster width
1409 cell->stat_width = *data++ + 1; 1416 cell->stat_width = *data++ + 1;
1410 else if (cmd == 0x47) // monster width 1417 else if (cmd == 0x47)
1411 { 1418 {
1412 if (*data == 4) 1419 if (*data == 8)
1413 ; // decode player tag 1420 ; // decode player uuid
1414 1421
1415 data += *data + 1; 1422 data += *data + 1;
1416 } 1423 }
1417 else if (cmd == 8) // cell flags 1424 else if (cmd == 8) // cell flags
1418 cell->flags = *data++; 1425 cell->flags = *data++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines