Hi.
I'm using codebase Swfote 2.1.
when I use the nofloor flag in a room and i'm falling down, the mud crashess.
The error is:
That line of handler.c is:
And the nofloor flag code in the act_move.c file is:
Thank you in advance and sorry for my English
I'm using codebase Swfote 2.1.
when I use the nofloor flag in a room and i'm falling down, the mud crashess.
The error is:
#0 0x00000000004ddd52 in char_to_room (ch=0x12e7490, pRoomIndex=0x0) at handler.c:1098That line of handler.c is:
void char_to_room( CHAR_DATA *ch, ROOM_INDEX_DATA *pRoomIndex )
{
OBJ_DATA *obj;
if ( !ch )
{
bug( "Char_to_room: NULL ch!", 0 );
return;
}
if( !get_room_index( pRoomIndex->vnum ) )
pRoomIndex = NULL;And the nofloor flag code in the act_move.c file is:
bool will_fall( CHAR_DATA *ch, int fall )
{
if ( IS_SET( ch->in_room->room_flags, ROOM_NOFLOOR )
&& CAN_GO(ch, DIR_DOWN)
&& (!IS_AFFECTED( ch, AFF_FLYING )
|| ( ch->mount && !IS_AFFECTED( ch->mount, AFF_FLYING ) ) ) )
{
if ( fall > 80 )
{
bug( "Falling (in a loop?) more than 80 rooms: vnum %d", ch->in_room->vnum );
char_from_room( ch );
char_to_room( ch, get_room_index( wherehome(ch) ) );
fall = 0;
return TRUE;
}
set_char_color( AT_FALLING, ch );
send_to_char( "Caes...\n\r", ch );
move_char( ch, get_exit(ch->in_room, DIR_DOWN), ++fall );
return TRUE;
}
return FALSE;
}Thank you in advance and sorry for my English