[Dec 23 2008] - Rumble

Fix for drink containers improperly showing empty due to unlimited container a
ddition. (thanks Parnassus)
  Fix for qedit crash when trying to list non-existent next quest. (thanks Tails
)
  Fix for ITEM_NOTE in oedit_disp_val1_menu function in oedit.c. (thanks Parnass
us)
This commit is contained in:
Rumble 2008-12-23 20:30:10 +00:00
parent dfc46cf479
commit dd7c413b1f
4 changed files with 12 additions and 6 deletions

View file

@ -35,6 +35,10 @@ export (QQ's a zone into a tarball)t
Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist) Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
(lots of major bugfixes too) (lots of major bugfixes too)
[Dec 23 2008] - Rumble
Fix for drink containers improperly showing empty due to unlimited container addition. (thanks Parnassus)
Fix for qedit crash when trying to list non-existent next quest. (thanks Tails)
Fix for ITEM_NOTE in oedit_disp_val1_menu function in oedit.c. (thanks Parnassus)
[Dec 04 2008] - Fizban [Dec 04 2008] - Fizban
DG Scripts are now attachable to players (cedit toggle defaults this behavior to off). DG Scripts are now attachable to players (cedit toggle defaults this behavior to off).
[Dec 01 2008] - Fizban [Dec 01 2008] - Fizban

View file

@ -569,7 +569,7 @@ static void look_in_obj(struct char_data *ch, char *arg)
list_obj_to_char(obj->contains, ch, SHOW_OBJ_SHORT, TRUE); list_obj_to_char(obj->contains, ch, SHOW_OBJ_SHORT, TRUE);
} }
} else { /* item must be a fountain or drink container */ } else { /* item must be a fountain or drink container */
if ((GET_OBJ_VAL(obj, 1) == 0) && (!GET_OBJ_VAL(obj, 0) == 1)) if ((GET_OBJ_VAL(obj, 1) == 0) && (!GET_OBJ_VAL(obj, 0) == -1))
send_to_char(ch, "It is empty.\r\n"); send_to_char(ch, "It is empty.\r\n");
else { else {
if (GET_OBJ_VAL(obj, 0) < 0) if (GET_OBJ_VAL(obj, 0) < 0)

View file

@ -444,12 +444,15 @@ static void oedit_disp_val1_menu(struct descriptor_data *d)
case ITEM_MONEY: case ITEM_MONEY:
write_to_output(d, "Number of gold coins : "); write_to_output(d, "Number of gold coins : ");
break; break;
case ITEM_NOTE:
case ITEM_FURNITURE: case ITEM_FURNITURE:
write_to_output(d, "Number of people it can hold : "); write_to_output(d, "Number of people it can hold : ");
break; break;
default: case ITEM_NOTE:
oedit_disp_menu(d); oedit_disp_menu(d);
break;
default:
mudlog(BRF, LVL_BUILDER, TRUE, "SYSERR: OLC: Reached default case in oedit_disp_val1_menu()!");
break;
} }
} }

View file

@ -342,10 +342,9 @@ static void qedit_disp_menu(struct descriptor_data *d)
obj_proto[real_object(quest->prereq)].short_description, obj_proto[real_object(quest->prereq)].short_description,
quest->value[4], quest->value[4],
quest->next_quest == NOTHING ? -1 : quest->next_quest, quest->next_quest == NOTHING ? -1 : quest->next_quest,
quest->next_quest == NOTHING ? "" : QST_DESC(real_quest(quest->next_quest)), real_quest(quest->next_quest) == NOTHING ? "" : QST_DESC(real_quest(quest->next_quest)),
quest->prev_quest == NOTHING ? -1 : quest->prev_quest, quest->prev_quest == NOTHING ? -1 : quest->prev_quest,
quest->prev_quest == NOTHING ? "" : QST_DESC(real_quest(quest->prev_quest)) real_quest(quest->prev_quest) == NOTHING ? "" : QST_DESC(real_quest(quest->prev_quest)));
);
OLC_MODE(d) = QEDIT_MAIN_MENU; OLC_MODE(d) = QEDIT_MAIN_MENU;
} }
/* For sector type. */ /* For sector type. */