From: Ari Johnson Date: Wed, 21 Feb 2007 14:26:29 +0000 (+0000) Subject: When variable exits fail, the enactor is told what the destination would have been X-Git-Tag: 0.73~134 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=35e50d829e620ddc60a11eb2884c3530614a3c47;p=cobramush.git When variable exits fail, the enactor is told what the destination would have been --- 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);