1783: Set and send solo status on servers with sv_solo_server and sv_team 3 r=def- a=trml

The solo flag isn't currently being sent on these servers (only tunings for hook and collision), which causes grenades to mistakenly be predicted to collide with others (when client and server both use ddnetcharacter).

Co-authored-by: trml <trml@users.noreply.github.com>
This commit is contained in:
bors[bot] 2019-06-13 18:12:43 +00:00
commit 6809f10820

View file

@ -583,6 +583,7 @@ void CPlayer::TryRespawn()
NewTeam = 0;
Controller->m_Teams.SetForceCharacterTeam(GetCID(), NewTeam);
m_pCharacter->SetSolo(true);
}
}