Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Fix: Fixed a bug where jpeg maps would no show in mapstats browser so…
Browse files Browse the repository at this point in the history
…urce
  • Loading branch information
2press committed Aug 8, 2022
1 parent 0cc1c89 commit 79e6893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion casting_html/src/js/mapstats.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function newMapData(newData) {
function loadImages() {
for (var name in mapData) {
mapData[name]["image"] = new Image();
mapData[name]["image"].src = "src/img/maps/".concat(name.replace(/\s/g, "_"), ".jpg");
mapData[name]["image"].src = "src/img/maps/" + mapData[name]["map-img"];
}
}

Expand Down
2 changes: 2 additions & 0 deletions scctool/tasks/mapstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def getData(self):
continue
data = self.__maps[mymap]
out_data['maps'][mymap] = dict()
out_data['maps'][mymap]['map-img'] = self.__controller.getMapImg(
mymap)
out_data['maps'][mymap]['map-name'] = mymap.replace(
'Dreamcatcher', 'Dream­catcher')
out_data['maps'][mymap]['map-name'] = mymap.replace(
Expand Down

0 comments on commit 79e6893

Please sign in to comment.