version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.42 2003/09/13 05:02:12 mwedel Exp $"; | | * "$Id: skills.c,v 1.43 2003/11/14 07:53:08 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (mflags & P_OUT_OF_MAP) continue; | | if (mflags & P_OUT_OF_MAP) continue; |
if (!(mflags & P_IS_ALIVE)) continue; | | if (!(mflags & P_IS_ALIVE)) continue; |
| | |
for(tmp=get_map_ob(m, x, y); tmp;tmp=tmp->above) | | for(tmp=get_map_ob(m, x, y); tmp;tmp=tmp->above) { |
if(QUERY_FLAG(tmp,FLAG_MONSTER)) break; | | if(QUERY_FLAG(tmp,FLAG_MONSTER)) break; |
/* can't affect players */ | | /* can't affect players */ |
if(tmp->type==PLAYER) break; | | if(tmp->type==PLAYER) break; |
| | } |
| | |
/* Whole bunch of checks to see if this is a type of monster that would | | /* Whole bunch of checks to see if this is a type of monster that would |
* listen to singing. | | * listen to singing. |