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 1e96f5f commit d4a9d87
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions dist/assets/app-third-party.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,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
2 changes: 1 addition & 1 deletion dist/assets/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "r3-web",
"description": "R3 Web",
"version": "0.5",
"version": "0.5.0",
"author": "alexcroox",
"license": "MIT",
"main": "gulpfile.js",
Expand Down

0 comments on commit d4a9d87

Please sign in to comment.