Code:
static void look_in_direction(struct char_data *ch, int dir)
{
if (EXIT(ch, dir)) {
room_rnum going_to EXIT(ch, dir)->to_room; <<--621
if (EXIT(ch, dir)->general_description)
send_to_char(ch, "%s", EXIT(ch, dir)->general_description);
if (EXIT_FLAGGED(EXIT(ch, dir), EX_CLOSED) && EXIT(ch, dir)->keyword)
send_to_char(ch, "The %s is closed.\r\n", fname(EXIT(ch, dir)->keyword));
else if (EXIT_FLAGGED(EXIT(ch, dir), EX_ISDOOR) && EXIT(ch, dir)->keyword)
send_to_char(ch, "The %s is open.\r\n", fname(EXIT(ch, dir)->keyword));
else if (going_to != NOWHERE && ROOM_FLAGGED(going_to, ROOM_DEATH) && GET_SKILL(ch, SKILL_SENSE_TRAP) > 95) <<--629
send_to_char(ch, "You sense that a trap might be there.\r\n");
} else
send_to_char(ch, "Nothing special there...\r\n");
}
gcc -g -O2 -Wall -c -o act.informative.o act.informative.c
act.informative.c: In function ‘look_in_direction’:
act.informative.c:621: error: expected ‘)’ before ‘[’ token
act.informative.c:629: error: ‘going_to’ undeclared (first use in this function)
act.informative.c:629: error: (Each undeclared identifier is reported only once
act.informative.c:629: error: for each function it appears in.)
make[1]: *** [act.informative.o] Error 1