mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Score no longer decreased when switching teams
This commit is contained in:
parent
825e732c87
commit
9603d676c6
|
@ -308,7 +308,7 @@ void IGameController::OnPlayerInfoChange(class CPlayer *pP)
|
|||
int IGameController::OnCharacterDeath(class CCharacter *pVictim, class CPlayer *pKiller, int Weapon)
|
||||
{
|
||||
// do scoreing
|
||||
if(!pKiller)
|
||||
if(!pKiller || Weapon == WEAPON_GAME)
|
||||
return 0;
|
||||
if(pKiller == pVictim->GetPlayer())
|
||||
pVictim->GetPlayer()->m_Score--; // suicide
|
||||
|
|
|
@ -156,8 +156,6 @@ void CPlayer::SetTeam(int Team)
|
|||
GameServer()->SendChat(-1, CGameContext::CHAT_ALL, Buf);
|
||||
|
||||
KillCharacter();
|
||||
if( m_Team != -1 ) // Give a point to make up for killing character, but not if they're a spectator
|
||||
m_Score += 1;
|
||||
|
||||
m_Team = Team;
|
||||
//m_ScoreStartTick = Server()->Tick();
|
||||
|
|
Loading…
Reference in a new issue