player.c starting line 201 possible changes:
Code: Select all
void
player_save(struct player *p)
{
if (p->login_date != 0) {
(void)database_save_player(&p->mob.server->database, p);
}
}
void
player_destroy(struct player *p)
{
if (p->login_date != 0) {
p->play_time += (time(NULL) - p->login_date);
}
player_save(p);
...
}
The ::time command is already setup to include the current login session, so no changes would be necessary there.