mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-20 02:21:44 +01:00
[Jul 08 2008] - Rumble
Removed duplicate questpoints listing in stat char. (thanks Mirad) Fix to qedit for deleting all quests. (thanks Jamdog) [Jul 06 2008] - Rumble Changed sedit no trade with from undefined to nobits. (thanks Mirad)
This commit is contained in:
@@ -128,13 +128,14 @@ int add_quest(struct aq_data *nqst)
|
||||
int delete_quest(qst_rnum rnum)
|
||||
{
|
||||
qst_rnum i;
|
||||
zone_rnum rznum = real_zone_by_thing(QST_NUM(rnum));
|
||||
zone_rnum rznum;
|
||||
mob_rnum qm = QST_MASTER(rnum);
|
||||
SPECIAL (*tempfunc);
|
||||
int quests_remaining = 0;
|
||||
|
||||
if (rnum >= total_quests)
|
||||
return FALSE;
|
||||
rznum = real_zone_by_thing(QST_NUM(rnum));
|
||||
log("GenOLC: delete_quest: Deleting quest #%d (%s).",
|
||||
QST_NUM(rnum), QST_NAME(rnum));
|
||||
/* make a note of the quest master's secondary spec proc */
|
||||
@@ -148,9 +149,10 @@ int delete_quest(qst_rnum rnum)
|
||||
total_quests--;
|
||||
if (total_quests > 0)
|
||||
RECREATE(aquest_table, struct aq_data, total_quests);
|
||||
else
|
||||
else {
|
||||
free(aquest_table);
|
||||
|
||||
aquest_table = NULL;
|
||||
}
|
||||
if (rznum != NOWHERE)
|
||||
add_to_save_list(zone_table[rznum].number, SL_QST);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user