Fix for teams

This commit is contained in:
,,,=^o_._o^=,,, 2012-11-05 23:59:40 +04:00
parent 8bf3e0a265
commit 143f3eb645

View file

@ -790,8 +790,7 @@ void CCharacter::Die(int Killer, int Weapon)
GameServer()->m_World.RemoveEntity(this);
GameServer()->m_World.m_Core.m_apCharacters[m_pPlayer->GetCID()] = 0;
GameServer()->CreateDeath(m_Pos, m_pPlayer->GetCID(), Teams()->TeamMask(Team(), -1, m_pPlayer->GetCID()));
// moved to DDRaceInit
// Teams()->SetForceCharacterTeam(m_pPlayer->GetCID(), 0);
Teams()->SetForceCharacterTeam(m_pPlayer->GetCID(), 0);
}
bool CCharacter::TakeDamage(vec2 Force, int Dmg, int From, int Weapon)