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) |
… | |
… | |
1412 | cell->stat_width = 1; |
1412 | cell->stat_width = 1; |
1413 | cell->stat_hp = *data++; |
1413 | cell->stat_hp = *data++; |
1414 | } |
1414 | } |
1415 | else if (cmd == 6) // monster width |
1415 | else if (cmd == 6) // monster width |
1416 | cell->stat_width = *data++ + 1; |
1416 | cell->stat_width = *data++ + 1; |
1417 | else if (cmd == 0x47) // monster width |
1417 | else if (cmd == 0x47) |
1418 | { |
1418 | { |
1419 | if (*data == 4) |
1419 | if (*data == 8) |
1420 | ; // decode player tag |
1420 | ; // decode player uuid |
1421 | |
1421 | |
1422 | data += *data + 1; |
1422 | data += *data + 1; |
1423 | } |
1423 | } |
1424 | else if (cmd == 8) // cell flags |
1424 | else if (cmd == 8) // cell flags |
1425 | cell->flags = *data++; |
1425 | cell->flags = *data++; |