act_move.c:604: error: lvalue required as left operand of assignment
ch_ret move_char( CHAR_DATA *ch, EXIT_DATA *pexit, int fall )
{
ROOM_INDEX_DATA *in_room;
ROOM_INDEX_DATA *to_room;
ROOM_INDEX_DATA *from_room;
char buf[MAX_STRING_LENGTH];
char *txt;
char *dtxt;
ch_ret retcode;
sh_int door, distance;
bool drunk = FALSE;
bool brief = FALSE;
int hpmove;
if ( !IS_NPC( ch ) )
if ( IS_DRUNK( ch, 2 ) && ( ch->position != POS_SHOVE )
&& ( ch->position != POS_DRAG ) )
drunk = TRUE;
if ( drunk && !fall )
{
door = number_door();
pexit = get_exit( ch->in_room, door );
}
#ifdef DEBUG
if ( pexit )
{
sprintf( buf, "move_char: %s to door %d", ch->name, pexit->vdir );
log_string( buf );
}
#endif
EXIT_DATA *tmp = get_exit( backroom, vdir );
int fulldist = tmp->distance;
bxit->distance = fulldist - distance;
}
}
(EXIT_DATA *) pexit = xit;
return room;
}
EXIT_DATA *tmp = get_exit( backroom, vdir );
int fulldist = tmp->distance;
bxit->distance = fulldist - distance;
}
}
*pexit = xit;
return room;
}