diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-06-14 17:25:02 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-06-14 17:25:02 +0200 |
commit | aac51cfaf15659e9447a79032dea5c05e0441709 (patch) | |
tree | 83dd7eb86dfeb5fd2e6148bd3883c5f255d97bc9 /src/statistics | |
parent | f5dcdfff1b52a819adb4354960213d7472978c7f (diff) | |
download | evtclib-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/statistics')
-rw-r--r-- | src/statistics/mod.rs | 2 |
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; |