Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix jumpy portals on ghostlinks #649

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
le-jeu marked this conversation as resolved.
Show resolved Hide resolved
// 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
Loading