Some quest log changes and removed one of the set char offline calls that was added in revision 12552.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12557 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
9bcdb353a4
commit
12aff369d9
@ -1216,7 +1216,7 @@ int mmo_char_fromsql(int char_id, struct mmo_charstatus* p, bool load_everything
|
|||||||
memcpy(&p->quest_log[i].objectives[j], &tmp_quest_obj, sizeof(tmp_quest_obj));
|
memcpy(&p->quest_log[i].objectives[j], &tmp_quest_obj, sizeof(tmp_quest_obj));
|
||||||
p->quest_log[i].num_objectives = j+1;
|
p->quest_log[i].num_objectives = j+1;
|
||||||
}
|
}
|
||||||
p->num_quests = i+1;
|
p->num_quests = i;
|
||||||
strcat(t_msg, " quests");
|
strcat(t_msg, " quests");
|
||||||
|
|
||||||
SqlStmt_Free(stmt2);
|
SqlStmt_Free(stmt2);
|
||||||
|
@ -164,7 +164,6 @@ static bool chrif_auth_logout(TBL_PC* sd, enum sd_state state)
|
|||||||
if(sd->fd && state == ST_LOGOUT)
|
if(sd->fd && state == ST_LOGOUT)
|
||||||
{ //Disassociate player, and free it after saving ack returns. [Skotlex]
|
{ //Disassociate player, and free it after saving ack returns. [Skotlex]
|
||||||
//fd info must not be lost for ST_MAPCHANGE as a final packet needs to be sent to the player.
|
//fd info must not be lost for ST_MAPCHANGE as a final packet needs to be sent to the player.
|
||||||
chrif_char_offline(sd);
|
|
||||||
if (session[sd->fd])
|
if (session[sd->fd])
|
||||||
session[sd->fd]->session_data = NULL;
|
session[sd->fd]->session_data = NULL;
|
||||||
sd->fd = 0;
|
sd->fd = 0;
|
||||||
|
@ -35,6 +35,10 @@
|
|||||||
//Send quest info on login
|
//Send quest info on login
|
||||||
int quest_pc_login(TBL_PC * sd)
|
int quest_pc_login(TBL_PC * sd)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(sd->num_quests == 0)
|
||||||
|
return 1;
|
||||||
|
|
||||||
clif_send_questlog(sd);
|
clif_send_questlog(sd);
|
||||||
clif_send_questlog_info(sd);
|
clif_send_questlog_info(sd);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user