Skip to content

Commit

Permalink
- Improved jump tracking on multiple maps (or map switch), closed exo…
Browse files Browse the repository at this point in the history
  • Loading branch information
exodus4d committed Dec 6, 2019
1 parent 9ecbe33 commit 1880a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main/model/pathfinder/charactermodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,8 @@ public function getLogPrevSystem(int $mapId, int $systemId) : ?CharacterLogModel
$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;
}

Expand Down

0 comments on commit 1880a2f

Please sign in to comment.