From 35e50d829e620ddc60a11eb2884c3530614a3c47 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Wed, 21 Feb 2007 14:26:29 +0000 Subject: [PATCH] When variable exits fail, the enactor is told what the destination would have been --- src/move.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/move.c b/src/move.c index e310d5d..ea471eb 100644 --- a/src/move.c +++ b/src/move.c @@ -423,8 +423,14 @@ do_move(dbref player, const char *direction, enum move_type type) case AMBIGUOUS: var_dest = find_var_dest(player, exit_m); /* Only allowed if the owner of the exit could link to var_dest */ - if (GoodObject(var_dest) && !can_link_to(exit_m, var_dest)) - var_dest = NOTHING; + if (!GoodObject(var_dest) || !can_link_to(exit_m, var_dest)) { + notify_format(player, + T + ("Variable exit destination #%d is invalid or not permitted."), + var_dest); + + return; + } break; default: var_dest = Location(exit_m); -- 2.30.2