mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-19 02:36:33 +01:00
Look directional bug fix
This commit is contained in:
parent
b6bbe522bb
commit
4ff54bf429
1 changed files with 5 additions and 4 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue