Just wondering something that someone else has commented on in the code. In db.c around line 600: /* Exit if 0 records, unless this is shops */ if (!rec_count) { if (mode == DB_BOOT_SHP) return; log("SYSERR: boot error - 0 records counted in %s/%s.", prefix, index_filename); exit(1); } /* Any idea why you put this here Jeremy? */ rec_count++; /* * NOTE: "bytes" does _not_ include strings or other later malloc'd things. */ I only noticed because I stripped the MUD down to a single zone but the log showed that there were two zones. Can someone explain why the rec_count++ is there? It throws the count off by one for mobs, objs, zones and rooms but maybe there's a reason why it was done? liB -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/05/01 PST