Skip to content

Commit

Permalink
[Fix] Reset idle time on player connect (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
Solkrasm authored Oct 28, 2022
1 parent 482f020 commit 281369e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ void ProtocolGame::connect(uint32_t playerId, OperatingSystem_t operatingSystem)
sendAddCreature(player, player->getPosition(), 0, true);
player->lastIP = player->getIP();
player->lastLoginSaved = std::max<time_t>(time(nullptr), player->lastLoginSaved + 1);
player->resetIdleTime();
acceptPackets = true;
}

Expand Down

0 comments on commit 281369e

Please sign in to comment.