version 1.155 | | version 1.156 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.155 2006/05/13 05:18:44 qal21 Exp $"; | | * "$Id: spell_effect.c,v 1.156 2006/07/14 17:58:09 qal21 Exp $"; |
*/ | | */ |
| | |
| | |
| | |
| | |
/* Check to see if the map the player is currently on is a per player unique | | /* Check to see if the map the player is currently on is a per player unique |
* map. This can be determined in that per player unique maps have the | | * map. This can be determined in that per player unique maps have the |
* full pathname listed. | | * full pathname listed. Ignore if settings.create_home_portals is true. |
*/ | | */ |
| | if (!settings.create_home_portals) { |
if (!strncmp(op->map->path, settings.localdir, strlen(settings.localdir))) { | | if (!strncmp(op->map->path, settings.localdir, strlen(settings.localdir))) { |
new_draw_info(NDI_UNIQUE | NDI_NAVY, 0,op,"You can't cast that here.\n"); | | new_draw_info(NDI_UNIQUE | NDI_NAVY, 0,op,"You can't cast that here.\n"); |
return 0; | | return 0; |
} | | } |
| | } |
| | |
/* Check to see if the player is on a transport */ | | /* Check to see if the player is on a transport */ |
if (op->contr && op->contr->transport) { | | if (op->contr && op->contr->transport) { |