Skip to content

Commit

Permalink
Revert "WZ: add a lighter outline map."
Browse files Browse the repository at this point in the history
This reverts commit 32a0c77.
  • Loading branch information
mascaldotfr committed Jan 15, 2024
1 parent 32a0c77 commit fe28d08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file removed data/warstatus/base_map.png
Binary file not shown.
2 changes: 1 addition & 1 deletion js/menu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/wz.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ function svg_to_blob(fname) {
}

function display_map(fortsdata) {
let forts = [{icon: "base_map.png"}].concat(fortsdata);
let forts = [{icon: "base_map.jpg"}].concat(fortsdata);

// Preload images beforehand
let forts_Image = [];
let forts_Image_count = 0;
for (let i = 0; i < forts.length; i++) {
let imgbuffer = new Image();
if (i == 0) // base_map.png
if (i == 0) // base_map.jpg
imgbuffer.src = rebase_img(forts[i]["icon"]);
else { // forts icons as inline SVG
imgbuffer.src = svg_to_blob(dispatch_fort_icon(forts[i]));
Expand Down

0 comments on commit fe28d08

Please sign in to comment.