Share afk state of players to client

This commit is contained in:
Arda 2019-07-13 12:25:24 +03:00
parent bbcf7a6905
commit f1454dbb7a
2 changed files with 2 additions and 0 deletions

View file

@ -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", [

View file

@ -324,6 +324,7 @@ void CPlayer::Snap(int SnappingClient)
return;
pDDNetPlayer->m_AuthLevel = Server()->GetAuthedState(id);
pDDNetPlayer->m_Afk = m_Afk;
}
void CPlayer::FakeSnap()