Skip to content

Commit

Permalink
use new IITC.utils API
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu committed Nov 19, 2024
1 parent 8f82f4f commit da84f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/code/portal_marker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global L, log -- eslint */
/* global IITC, L, log -- eslint */

/**
* @file This file contains the code related to creating and updating portal markers on the map.
Expand Down Expand Up @@ -168,7 +168,7 @@ L.PortalMarker = L.CircleMarker.extend({
}

this._level = parseInt(this._details.level) || 0;
this._team = window.teamStringToId(this._details.team);
this._team = IITC.utils.getTeamId(this._details.team);

// the data returns unclaimed portals as level 1 - but IITC wants them treated as level 0
if (this._team === window.TEAM_NONE) {
Expand Down

0 comments on commit da84f53

Please sign in to comment.