1 | /* |
1 | /* |
2 | * static char *rcsid_spell_effect_c = |
2 | * static char *rcsid_spell_effect_c = |
3 | * "$Id: spell_effect.c,v 1.3 2006/04/24 19:34:18 pippijn Exp $"; |
3 | * "$Id: spell_effect.c,v 1.4 2006/04/28 13:56:27 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
… | |
… | |
888 | |
888 | |
889 | /* Check to see if the map the player is currently on is a per player unique |
889 | /* Check to see if the map the player is currently on is a per player unique |
890 | * map. This can be determined in that per player unique maps have the |
890 | * map. This can be determined in that per player unique maps have the |
891 | * full pathname listed. |
891 | * full pathname listed. |
892 | */ |
892 | */ |
893 | if (!strncmp(op->map->path, settings.localdir, strlen(settings.localdir))) { |
893 | if (!strncmp(op->map->path, settings.localdir, strlen(settings.localdir)) && |
|
|
894 | settings.create_home_portals != TRUE ) |
|
|
895 | { |
894 | new_draw_info(NDI_UNIQUE | NDI_NAVY, 0,op,"You can't cast that here.\n"); |
896 | new_draw_info(NDI_UNIQUE | NDI_NAVY, 0,op,"You can't cast that here.\n"); |
895 | return 0; |
897 | return 0; |
896 | } |
898 | } |
897 | |
899 | |
898 | /* The first thing to do is to check if we have a marked destination |
900 | /* The first thing to do is to check if we have a marked destination |
899 | * dummy is used to make a check inventory for the force |
901 | * dummy is used to make a check inventory for the force |
900 | */ |
902 | */ |