Code:
static void look_in_direction(struct char_data *ch, int dir)
{
int anything_special = FALSE;
if (EXIT(ch, dir)) {
if (EXIT(ch, dir)->general_description && anything_special = TRUE)
send_to_char(ch, "%s", EXIT(ch, dir)->general_description);
if (EXIT_FLAGGED(EXIT(ch, dir), EX_CLOSED) && EXIT(ch, dir)->keyword && anything_special = TRUE)
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 && anything_special = TRUE)
send_to_char(ch, "The %s is open.\r\n", fname(EXIT(ch, dir)->keyword));
room_rnum going_to = EXIT(ch, dir)->to_room;
if (going_to != NOWHERE && ROOM_FLAGGED(going_to, ROOM_DEATH) && GET_SKILL(ch, SKILL_SENSE_TRAP) > 95 && anything_special = TRUE)
send_to_char(ch, "You sense that a trap might be there.\r\n");
}
if (!anything_special)
send_to_char(ch, "Nothing special there...\r\n");
}
act.informative.c: In function ‘look_in_direction’:
act.informative.c:622: error: invalid lvalue in assignment
act.informative.c:625: error: invalid lvalue in assignment
act.informative.c:627: error: invalid lvalue in assignment
act.informative.c:632: error: invalid lvalue in assignment
The errors is in all 4 lines where anything_special is used ?