Skip to content

Commit

Permalink
Update premium time on each character login (otland#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro authored and DSpeichert committed Jul 12, 2018
1 parent 0dce839 commit 00edfc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,9 @@ void Player::onCreatureAppear(Creature* creature, bool isLogin)
if (bed) {
bed->wakeUp(this);
}

Account account = IOLoginData::loadAccount(accountNumber);
Game::updatePremium(account);

std::cout << name << " has logged in." << std::endl;

Expand Down

0 comments on commit 00edfc5

Please sign in to comment.