so I made
for ( mreset = location->area->first_reset; mreset; mreset = mreset_next )
{
mreset_next = mreset->next;
if ( is_room_reset( mreset, location, location->area ) )
delete_reset( location->area, mreset );
}
to just be
wipe_resets( location );
Is that what you ment?
Yes thats what I ment.
The next Problem is
house.c:1658: warning: passing argument 1 of 'delete_reset' from incompatible pointer type
for ( mreset = addloc->first_reset; mreset; mreset = mreset_next )
{
mreset_next = mreset->next;
delete_reset( addloc->area, mreset );
}
so I what I did was make it read
for ( mreset = addloc->first_reset; mreset; mreset = mreset_next )
{
mreset_next = mreset->next;
delete_reset( mreset );
}
Let me know if that's what it should be, I believe this is deleting the resets if the house is removed.
Nope I would also change that to wipe_resets( addloc );
More or less it just wants to remove all the resets in the room correct?
And the last error was.
house.c:1774: error: too few arguments to function 'make_room'
if ( (get_room_index( i )) == NULL )
{
if ( (addloc = make_room(i)) == NULL)
return FALSE;
break;
}
}
so I made this
if ( (get_room_index( i )) == NULL )
{
if ( (addloc = make_room(i, 0)) == NULL)
return FALSE;
break;
}
}
I did that because that's how a check like this is done in mapout.c so I not sure if I did the right thing here.
For that one I think you can change make_room(i, 0) to make_room( i, pArea ); at least from what I see in the house.c file.