- Improved jump tracking on multiple maps (or map switch), closed #827 closed #886

This commit is contained in:
Mark Friedrich
2019-12-06 18:16:15 +01:00
parent 9ecbe33f5e
commit 1880a2fec5

View File

@@ -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;
}