From cae78327d81451504b98699e2a0ed23dbd243b9a Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Tue, 20 Feb 2007 21:28:52 +0000 Subject: [PATCH] FIXED players may no longer teleport through exits --- src/wiz.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/wiz.c b/src/wiz.c index f1d2b04..afb1660 100644 --- a/src/wiz.c +++ b/src/wiz.c @@ -558,13 +558,17 @@ do_teleport(dbref player, const char *arg1, const char *arg2, int silent, return; } else { /* attempted teleport to an exit */ - if (Tel_Thing(player, victim) || controls(player, victim) - || controls(player, Location(victim))) + if ((Tel_Thing(player, victim) || controls(player, victim) + || controls(player, Location(victim))) + && !Fixed(Owner(victim)) && !Fixed(player)) { do_move(victim, to, 0); - else - notify_format(victim, - T("%s tries to impose his will on you and fails."), - Name(player)); + } else { + notify(player, T("Permission denied.")); + if (victim != player) + notify_format(victim, + T("%s tries to impose his will on you and fails."), + Name(player)); + } } } } -- 2.30.2