Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
Infantry icon mapping to match vehicles process
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcroox committed Feb 19, 2017
1 parent 8158751 commit 1e96f5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets-src/js/lib/markers.js
Expand Up @@ -318,7 +318,10 @@ Markers.prototype.getIconWithFaction = function(isVehicle, iconPath, defaultIcon

var icon = defaultIcon + '.png';

if (typeof iconPath !== "undefined" && typeof this.icons[iconPath.toLowerCase()] !== "undefined")
if(typeof iconPath === "undefined")
iconPath = defaultIcon;

if (typeof this.icons[iconPath.toLowerCase()] !== "undefined")
icon = this.icons[iconPath.toLowerCase()] + '.png';

// Add our faction to the icon name so we get a colour specific version
Expand Down

0 comments on commit 1e96f5f

Please sign in to comment.