BUG:Fix included, Guild exp does not save
Posted: Thu Nov 23, 2017 8:25 am
in guild.cpp
void Guild::AddEXPCurrent(sint64 exp, bool send_packet) {
the following portion of code should be modifed
as follows
this will allow guild xp earned to save properly
void Guild::AddEXPCurrent(sint64 exp, bool send_packet) {
the following portion of code should be modifed
Code: Select all
strncpy(adjective, "too uber for cheerios", sizeof(adjective) - 1);
sprintf(message, "The %s guild <%s> has attained level %u", adjective, name, level);
zone_list.HandleGlobalAnnouncement(message);
}
save_needed = true;
ret = true;
} //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<move this } to above save_needed =true;
}
else if (exp < 0) {
}
if (ret && send_packet)
SendGuildUpdate();
}Code: Select all
strncpy(adjective, "too uber for cheerios", sizeof(adjective) - 1);
sprintf(message, "The %s guild <%s> has attained level %u", adjective, name, level);
zone_list.HandleGlobalAnnouncement(message);
}
}
save_needed = true;
ret = true;
}
else if (exp < 0) {
}
if (ret && send_packet)
LogWrite(GUILD__DEBUG, 0, "Guilds", "Update Guild XP:") ;
SendGuildUpdate();
}