From aac51cfaf15659e9447a79032dea5c05e0441709 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 14 Jun 2018 17:25:02 +0200 Subject: use log start time as fallback for combat enter Does only the PoV player have the enter combat event...? --- src/statistics/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/statistics/mod.rs b/src/statistics/mod.rs index 0254135..a46fc27 100644 --- a/src/statistics/mod.rs +++ b/src/statistics/mod.rs @@ -114,6 +114,8 @@ pub fn calculate(log: &Log) -> StatResult { // event.time to track information related to time. if enter_time != 0 { agent.enter_combat = enter_time; + } else { + agent.enter_combat = log_start_time; } if exit_time != 0 { agent.exit_combat = exit_time; -- cgit v1.2.3