… | |
… | |
20 | |
20 | |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
22 | */ |
22 | */ |
23 | |
23 | |
24 | #include <global.h> |
24 | #include <global.h> |
25 | #ifndef __CEXTRACT__ |
|
|
26 | # include <sproto.h> |
25 | #include <sproto.h> |
27 | #endif |
|
|
28 | |
26 | |
29 | /* given that 'pet' is a friendly object, this function returns a |
27 | /* given that 'pet' is a friendly object, this function returns a |
30 | * monster the pet should attack, NULL if nothing appropriate is |
28 | * monster the pet should attack, NULL if nothing appropriate is |
31 | * found. it basically looks for nasty things around the owner |
29 | * found. it basically looks for nasty things around the owner |
32 | * of the pet to attack. |
30 | * of the pet to attack. |
33 | * this is now tilemap aware. |
31 | * this is now tilemap aware. |
34 | */ |
32 | */ |
35 | |
|
|
36 | object * |
33 | object * |
37 | get_pet_enemy (object *pet, rv_vector * rv) |
34 | get_pet_enemy (object *pet, rv_vector * rv) |
38 | { |
35 | { |
39 | object *owner, *tmp, *attacker, *tmp3; |
36 | object *owner, *tmp, *attacker, *tmp3; |
40 | int i; |
37 | int i; |