aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2018-06-14 17:25:02 +0200
committerDaniel Schadt <kingdread@gmx.de>2018-06-14 17:25:02 +0200
commitaac51cfaf15659e9447a79032dea5c05e0441709 (patch)
tree83dd7eb86dfeb5fd2e6148bd3883c5f255d97bc9 /src
parentf5dcdfff1b52a819adb4354960213d7472978c7f (diff)
downloadevtclib-aac51cfaf15659e9447a79032dea5c05e0441709.tar.gz
evtclib-aac51cfaf15659e9447a79032dea5c05e0441709.tar.bz2
evtclib-aac51cfaf15659e9447a79032dea5c05e0441709.zip
use log start time as fallback for combat enter
Does only the PoV player have the enter combat event...?
Diffstat (limited to 'src')
-rw-r--r--src/statistics/mod.rs2
1 files changed, 2 insertions, 0 deletions
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<Statistics> {
// 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;