//editted for showing closed exits
for (door = 0; door <= 5; door++)
{
if (IS_SET (pexit->exit_info, EX_CLOSED))
closed = TRUE;
if ((pexit = ch->in_room->exit[door]) != NULL
&& pexit->u1.to_room != NULL
&& can_see_room (ch, pexit->u1.to_room))
{
found = TRUE;
a) when an exit door is closed.. that direction (when you "look") is shown with brackets around it… Example:
If in a room with avaliable directions north, east and south… but east directions door is closed.. it will show like this:
b) when you type "exit" it currently shows what is in the direction of a closed door… however I would like closed exits do simply appear with (closed) instead… As for the example room above.. this would be the situation:
North - Northern Arena
East - (closed)
South - Southern Arena
This is my current do_exit:
This is my compile warning:
act_info.c: In function `do_exits':
act_info.c:1499: warning: 'pexit' might be used uninitialized in this function
And once I boot up the mud.. it crashes after the MOTD.
Any help would be very appreciated,
Bob.