tbaMUD 3.54

[Oct 10 2007] - Rumble
  Added OLC menu options for Copying. The Xcopy option is still available for GODs and above.
  Player table is now created if it does not exist. (thanks Rhade)
[Oct 08 2007] - Rumble
  Removed top_shop_offset variable, hopefully fixing the infamous sedit bug.
  Fixed memory leaks from not freeing new zone builders and new zone commands. (thanks Neme)
This commit is contained in:
Rumble
2007-10-12 17:59:17 +00:00
parent 40b643b7d5
commit 0b3748b07a
38 changed files with 12904 additions and 12966 deletions

View File

@@ -255,7 +255,7 @@ shop_rnum real_shop(shop_vnum vnum)
int bot, top, mid;
bot = 0;
top = top_shop - top_shop_offset;
top = top_shop;
/* perform binary search on shop_table */
while (bot < top) {
@@ -307,9 +307,9 @@ int add_shop(struct shop_data *nshp)
}
top_shop++;
RECREATE(shop_index, struct shop_data, top_shop - top_shop_offset + 1);
RECREATE(shop_index, struct shop_data, top_shop + 1);
for (rshop = top_shop - top_shop_offset; rshop > 0; rshop--) {
for (rshop = top_shop; rshop > 0; rshop--) {
if (nshp->vnum > SHOP_NUM(rshop - 1)) {
found = rshop;