From 1880a2fec5efa3b37897cf3bcb4a3ed2214db4be Mon Sep 17 00:00:00 2001 From: Mark Friedrich Date: Fri, 6 Dec 2019 18:16:15 +0100 Subject: [PATCH] - Improved jump tracking on multiple maps (or map switch), closed #827 closed #886 --- app/main/model/pathfinder/charactermodel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main/model/pathfinder/charactermodel.php b/app/main/model/pathfinder/charactermodel.php index 1b22bbf1..49082bf6 100644 --- a/app/main/model/pathfinder/charactermodel.php +++ b/app/main/model/pathfinder/charactermodel.php @@ -1243,7 +1243,8 @@ class CharacterModel extends AbstractPathfinderModel { $skipRest = false; $logHistoryData = $this->filterLogsHistory(function(array $historyEntry) use ($mapId, $systemId, &$skipRest) : bool { $addEntry = false; - if(in_array($mapId, (array)$historyEntry['mapIds'], true)){ + //if(in_array($mapId, (array)$historyEntry['mapIds'], true)){ // $historyEntry is checked by EACH map -> would auto add system on map switch! #827 + if(!empty((array)$historyEntry['mapIds'])){ // if $historyEntry was already checked by ANY other map -> no further checks $skipRest = true; }