… | |
… | |
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 | |
|
|
498 | void |
|
|
499 | weaken (SV *rv) |
|
|
500 | PROTOTYPE: $ |
|
|
501 | CODE: |
|
|
502 | sv_rvweaken (rv); |
|
|
503 | |
497 | int |
504 | int |
498 | in_destruct () |
505 | in_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++; |