Skip to content

Commit

Permalink
fix jumpy portals on ghostlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
xscreach committed Jul 20, 2023
1 parent 9e632f7 commit fd20834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/code/map_data_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ window.Render.prototype.createPlaceholderPortalEntity = function (guid, latE6, l
if (guid in window.portals) {
var p = window.portals[guid];
portalMoved = latE6 !== p.options.data.latE6 || lngE6 !== p.options.data.lngE6;
if (team !== p.options.data.team) {
if (team !== p.options.data.team && p.options.timestamp < timestamp) {
// team - delete existing portal
this.deletePortalEntity(guid);
}
Expand Down

0 comments on commit fd20834

Please sign in to comment.