Skip to content

Commit

Permalink
prevent portal data without timestamp (0) clash with placeholder time…
Browse files Browse the repository at this point in the history
…stamp (now -1)
  • Loading branch information
xscreach committed Jul 25, 2023
1 parent 43ac9c8 commit da58114
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions core/code/map_data_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,15 @@ window.Render.prototype.createPlaceholderPortalEntity = function (guid, latE6, l
timestamp = timestamp || 0;

var ent = [
guid, //ent[0] = guid
0, //ent[1] = timestamp - zero will mean any other source of portal data will have a higher timestamp
//ent[2] = an array with the entity data
[ 'p', //0 - a portal
team, //1 - team
latE6, //2 - lat
lngE6 //3 - lng
]
guid, // ent[0] = guid
-1, // ent[1] = timestamp - zero will mean any other source of portal data will have a higher timestamp
// ent[2] = an array with the entity data
[
'p', // 0 - a portal
team, // 1 - team
latE6, // 2 - lat
lngE6, // 3 - lng
],
];

// placeholder portals don't have a useful timestamp value - so the standard code that checks for updated
Expand Down

0 comments on commit da58114

Please sign in to comment.