mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 18:24:09 +02:00
handle some time travel in logs
This commit is contained in:
parent
6637e466ab
commit
be0e0670e9
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ impl PlayerSpecificData for MedicStatsBuilder {
|
||||||
}
|
}
|
||||||
GameEvent::ChargeReady => {
|
GameEvent::ChargeReady => {
|
||||||
if self.last_build_start > 0 {
|
if self.last_build_start > 0 {
|
||||||
let build_time = meta.time - self.last_build_start;
|
let build_time = meta.time.saturating_sub(self.last_build_start);
|
||||||
self.last_build_start = 0;
|
self.last_build_start = 0;
|
||||||
self.total_time_to_build += build_time;
|
self.total_time_to_build += build_time;
|
||||||
self.uber_build_count += 1;
|
self.uber_build_count += 1;
|
||||||
|
|
@ -109,7 +109,7 @@ impl PlayerSpecificData for MedicStatsBuilder {
|
||||||
} else if charge >= 100 {
|
} else if charge >= 100 {
|
||||||
self.drops += 1;
|
self.drops += 1;
|
||||||
}
|
}
|
||||||
if meta.time - self.last_uber_end <= 10 {
|
if meta.time.saturating_sub(self.last_uber_end) <= 10 {
|
||||||
self.deaths_after_uber += 1;
|
self.deaths_after_uber += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue