From 4ff54bf429148e277d3ba28f2f52219f0eecf88f Mon Sep 17 00:00:00 2001 From: kinther Date: Tue, 30 Dec 2025 13:36:11 -0800 Subject: [PATCH] Look directional bug fix --- src/act.informative.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/act.informative.c b/src/act.informative.c index 19d3328..3de0139 100644 --- a/src/act.informative.c +++ b/src/act.informative.c @@ -962,8 +962,6 @@ static void look_in_direction(struct char_data *ch, int dir) for (distance = 0; distance < 3; distance++) { struct room_direction_data *exit = NULL; - send_to_char(ch, "%s\r\n", range_labels[distance]); - if (!blocked) { exit = W_EXIT(room, dir); @@ -978,10 +976,13 @@ static void look_in_direction(struct char_data *ch, int dir) } if (blocked || !VALID_ROOM_RNUM(room)) { - send_to_char(ch, "nothing\r\n"); - continue; + if (distance == 0) + send_to_char(ch, "nothing\r\n"); + break; } + send_to_char(ch, "%s\r\n", range_labels[distance]); + if (!look_list_direction_chars(ch, room)) send_to_char(ch, "nothing\r\n"); }