Implementing automatic kick of players after a certain timeout within a game.
This commit is contained in:
1 parent
91b3307584
commit
0a8cd1cce4
8 files changed
+51
-27
No files matched your search
@@ -5123,3 +5123,13 @@ bool LocalPlayer::checkIfINeedToShowCards()
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void LocalPlayer::markRemoteAction()
|
||||
{
|
||||
m_lastRemoteActionTimer.restart();
|
||||
}
|
||||
|
||||
unsigned LocalPlayer::getTimeSecSinceLastRemoteAction() const
|
||||
{
|
||||
return m_lastRemoteActionTimer.elapsed().total_seconds();
|
||||
}
|
||||
Reference in new issue
Block a user