… | |
… | |
638 | object *dummy, *force, *old_force; |
638 | object *dummy, *force, *old_force; |
639 | archetype *perm_portal; |
639 | archetype *perm_portal; |
640 | char portal_name[1024], portal_message[1024]; |
640 | char portal_name[1024], portal_message[1024]; |
641 | maptile *exitmap; |
641 | maptile *exitmap; |
642 | int op_level; |
642 | int op_level; |
643 | |
|
|
644 | /* Check to see if the map the player is currently on is a per player unique |
|
|
645 | * map. This can be determined in that per player unique maps have the |
|
|
646 | * full pathname listed. |
|
|
647 | */ |
|
|
648 | if (!strncmp (op->map->path, settings.localdir, strlen (settings.localdir)) && settings.create_home_portals != TRUE) |
|
|
649 | { |
|
|
650 | new_draw_info (NDI_UNIQUE | NDI_NAVY, 0, op, "You can't cast that here.\n"); |
|
|
651 | return 0; |
|
|
652 | } |
|
|
653 | |
643 | |
654 | /* The first thing to do is to check if we have a marked destination |
644 | /* The first thing to do is to check if we have a marked destination |
655 | * dummy is used to make a check inventory for the force |
645 | * dummy is used to make a check inventory for the force |
656 | */ |
646 | */ |
657 | dummy = arch_to_object (spell->other_arch); |
647 | dummy = arch_to_object (spell->other_arch); |