It seems to me that my asave changed is saving ever file everytime one
hasthe changed flag on it....I have replaced the changed section with a
different code part but to no avail here isthe code...Any ideas...?

 if ( !str_cmp( "changed", arg1 ) )
    {
        char buf[MAX_INPUT_LENGTH];

        save_area_list();

        send_to_char( "Saved zones:\n\r", ch );
        sprintf( buf, "None.\n\r" );

        for( pArea = area_first; pArea; pArea = pArea->next )
        {
            /* Builder must be assigned this area. */
            if ( !IS_BUILDER( ch, pArea ) )
                continue;

            /* Save changed areas. */
            if ( IS_SET(pArea->area_flags, AREA_CHANGED) )
            {
                save_area( pArea );
                sprintf( buf, "%24s - '%s'\n\r", pArea->name,
pArea->file_name );
                send_to_char( buf, ch );
                REMOVE_BIT( pArea->area_flags, AREA_CHANGED );
            }
        }
        if ( !str_cmp( buf, "None.\n\r" ) )
            send_to_char( buf, ch );
        return;
    }


But my general theory is that for some reason once ONE gets flagged the
mud thinks they ALL are...I dunno why but instead of using just the
numbers inmerc.h for AREA_CHANGED flag...its using a letter might this
affect it...PLease tell me whats up...I mean it just spam saves all areas
and dbdumps basically

[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org


Reply via email to