Skip to content

Commit

Permalink
add comment #1
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu authored and modos189 committed Nov 18, 2024
1 parent 50145b4 commit f20886b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/code/portal_marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ L.PortalMarker = L.CircleMarker.extend({
// in any other case
return false;
}
// new data
// more recent timestamp, this occurs when the data has changed because of:
// - resonator deploy/upgrade
// - mod deploy
// - recharge/damage/decay
// - portal edit (title, location, portal main picture)
if (this._details.timestamp < details.timestamp)
return true;
// current marker is a placeholder, and details is real data
Expand All @@ -83,6 +87,8 @@ L.PortalMarker = L.CircleMarker.extend({
if (this._details.timestamp > details.timestamp)
return false;

// this._details.timestamp === details.timestamp

// get new history
if (details.history) {
if (!this._details.history)
Expand Down

0 comments on commit f20886b

Please sign in to comment.