1
This commit is contained in:
parent
224cd939c5
commit
72c4d3a86f
@ -39,6 +39,7 @@ void InGameVoice::UnInit()
|
||||
|
||||
void InGameVoice::OnHumanBeKill(int killer_id, Human* deader)
|
||||
{
|
||||
personal_nodead_series_kills_.erase(deader->GetUniId());
|
||||
if (killer_id == deader->GetUniId()) {
|
||||
return;
|
||||
}
|
||||
@ -46,11 +47,9 @@ void InGameVoice::OnHumanBeKill(int killer_id, Human* deader)
|
||||
if (!killer) {
|
||||
return;
|
||||
}
|
||||
personal_nodead_series_kills_.erase(deader->GetUniId());
|
||||
++global_kills_;
|
||||
IncIntMap(personal_kills_, killer_id);
|
||||
IncIntMap(personal_series_kills_, killer_id);
|
||||
//UpdateTeamBeKillLastTime(GetTeamBeKillLastTime(deader->GetTeam()->GetTeamId()));
|
||||
if (!killer->dead) {
|
||||
IncIntMap(personal_nodead_series_kills_, killer_id);
|
||||
}
|
||||
@ -69,11 +68,6 @@ void InGameVoice::OnHumanBeKill(int killer_id, Human* deader)
|
||||
}
|
||||
}
|
||||
|
||||
void InGameVoice::UpdateTeamBeKillLastTime(int team_id)
|
||||
{
|
||||
team_bekill_last_time_hash_[team_id] = room_->GetFrameNo();
|
||||
}
|
||||
|
||||
#if 0
|
||||
void InGameVoice::IncPersonalSeriesKills(int killer_id)
|
||||
{
|
||||
|
@ -8,6 +8,7 @@ class InGameVoice : public std::enable_shared_from_this<InGameVoice>
|
||||
|
||||
InGameVoice(Room* room);
|
||||
~InGameVoice();
|
||||
|
||||
void Init();
|
||||
void UnInit();
|
||||
|
||||
@ -25,5 +26,5 @@ private:
|
||||
std::map<int, int> personal_kills_;
|
||||
std::map<int, int> personal_series_kills_;
|
||||
std::map<int, int> personal_nodead_series_kills_;
|
||||
std::map<int, int> team_bekill_last_time_hash_;
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user