version 1.181 | | version 1.182 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.181 2005/10/28 18:19:53 akirschbaum Exp $"; | | * "$Id: player.c,v 1.182 2005/10/28 19:08:53 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
object *op = NULL; | | object *op = NULL; |
player *pl = NULL; | | player *pl = NULL; |
objectlink *ol; | | objectlink *ol; |
int lastdist; | | unsigned lastdist; |
rv_vector rv; | | rv_vector rv; |
| | |
for(ol=first_friendly_object,lastdist=1000;ol!=NULL;ol=ol->next) { | | for(ol=first_friendly_object,lastdist=1000;ol!=NULL;ol=ol->next) { |
| | |
* since only simple checks to blocked are being called, which could mean the monster | | * since only simple checks to blocked are being called, which could mean the monster |
* is blocking itself. | | * is blocking itself. |
*/ | | */ |
int path_to_player(object *mon, object *pl,int mindiff) { | | int path_to_player(object *mon, object *pl, unsigned mindiff) { |
rv_vector rv; | | rv_vector rv; |
sint16 x,y; | | sint16 x,y; |
int lastx,lasty,dir,i,diff, firstdir=0,lastdir, max=MAX_SPACES, mflags; | | int lastx,lasty,dir,i,diff, firstdir=0,lastdir, max=MAX_SPACES, mflags; |
| | |
arrow->stats.hp = arrow->stats.dam; | | arrow->stats.hp = arrow->stats.dam; |
arrow->stats.grace = arrow->attacktype; | | arrow->stats.grace = arrow->attacktype; |
if (arrow->slaying != NULL) | | if (arrow->slaying != NULL) |
arrow->spellarg = strdup(arrow->slaying); | | arrow->spellarg = strdup_local(arrow->slaying); |
| | |
/* Note that this was different for monsters - they got their level | | /* Note that this was different for monsters - they got their level |
* added to the damage. I think the strength bonus is more proper. | | * added to the damage. I think the strength bonus is more proper. |