The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

void reset_area()

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69s Beta6
View previous topic :: View next topic  
Author Message
Daos



Joined: 29 Jan 2003
Posts: 1216
Location: United States

PostPosted: Sat Sep 12, 2015 12:07 pm    Post subject: void reset_area() Reply with quote

Hiya,

There is no bug reporting thread regarding potential bugs in 1.69s so I am just posting this here. The issue is the command 'resetarea' is not functioning as intended. Using the command will only reset the room of the area you are in, rather than the entire area.

Investigating the function:

Code:
// Reset one area.
void reset_area( AREA_DATA *pArea )
{
    ROOM_INDEX_DATA *pRoom;
    int  vnum;

     for ( vnum = pArea->min_vnum; vnum <= pArea->max_vnum; vnum++ )
    {
        if ( ( pRoom = get_room_index(vnum) ) )
            reset_room(pRoom, false);
    }

    return;
}


reset_room(pRoom, false); should be reset_room(pRoom, true);

Tested and is now functioning as intended.



_________________
- Daos

http://www.dawnoftime.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Oreant



Joined: 16 Jul 2010
Posts: 47

PostPosted: Wed Sep 30, 2015 12:35 pm    Post subject: Reply with quote

Thanks for the catch and fix.

This would explain an odd situation awhile back where it seemed like resets were delayed when resetting on demand. Thought it was one of phantom things because when dealing with the other room in question, it reset fine. Sneaky.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » 1.69s Beta6 All times are GMT + 13 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin