mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 12:50:49 +01:00
fix medic deaths breaking player classes
This commit is contained in:
parent
ed8a8b517e
commit
7af84cb099
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,6 @@ impl GlobalData for Kills {
|
||||||
self.classes.insert(subject, Class::Medic);
|
self.classes.insert(subject, Class::Medic);
|
||||||
}
|
}
|
||||||
GameEvent::MedicDeath(event) if self.active => {
|
GameEvent::MedicDeath(event) if self.active => {
|
||||||
self.classes.insert(subject, Class::Medic);
|
|
||||||
if let (Some(kill), Some(victim)) = (self.kills.last_mut(), subject.steam_id()) {
|
if let (Some(kill), Some(victim)) = (self.kills.last_mut(), subject.steam_id()) {
|
||||||
if kill.time == time && kill.victim.id == victim {
|
if kill.time == time && kill.victim.id == victim {
|
||||||
kill.add_medic_info(event);
|
kill.add_medic_info(event);
|
||||||
|
|
@ -279,6 +278,7 @@ impl GlobalData for Kills {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GameEvent::MedicDeathEx(event) if self.active => {
|
GameEvent::MedicDeathEx(event) if self.active => {
|
||||||
|
self.classes.insert(subject, Class::Medic);
|
||||||
if let (Some(kill), Some(victim)) = (self.kills.last_mut(), subject.steam_id()) {
|
if let (Some(kill), Some(victim)) = (self.kills.last_mut(), subject.steam_id()) {
|
||||||
if kill.time == time && kill.victim.id == victim {
|
if kill.time == time && kill.victim.id == victim {
|
||||||
kill.add_medic_info_ex(event);
|
kill.add_medic_info_ex(event);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue