mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Share afk state of players to client
This commit is contained in:
parent
bbcf7a6905
commit
f1454dbb7a
|
@ -229,6 +229,7 @@ Objects = [
|
|||
NetObjectEx("DDNetPlayer", "player@netobj.ddnet.tw", [
|
||||
NetIntAny("m_Flags"),
|
||||
NetIntRange("m_AuthLevel", "AUTHED_NO", "AUTHED_ADMIN"),
|
||||
NetBool("m_Afk"),
|
||||
]),
|
||||
|
||||
NetObjectEx("GameInfoEx", "gameinfo@netobj.ddnet.tw", [
|
||||
|
|
|
@ -324,6 +324,7 @@ void CPlayer::Snap(int SnappingClient)
|
|||
return;
|
||||
|
||||
pDDNetPlayer->m_AuthLevel = Server()->GetAuthedState(id);
|
||||
pDDNetPlayer->m_Afk = m_Afk;
|
||||
}
|
||||
|
||||
void CPlayer::FakeSnap()
|
||||
|
|
Loading…
Reference in a new issue