v1.5.77 - river data change

This commit is contained in:
Azgaar 2021-02-28 17:16:04 +03:00
parent 07f0eff52c
commit 12fd553b0d
4 changed files with 64 additions and 66 deletions

View file

@ -61,13 +61,11 @@
relief.sort((a, b) => (a.y + a.s) - (b.y + b.s));
// append relief icons at once using pure js
void function renderRelief() {
let reliefHTML = "";
for (const r of relief) {
reliefHTML += `<use href="${r.i}" x="${r.x}" y="${r.y}" width="${r.s}" height="${r.s}"/>`;
}
terrain.html(reliefHTML);
}()
let reliefHTML = "";
for (const r of relief) {
reliefHTML += `<use href="${r.i}" x="${r.x}" y="${r.y}" width="${r.s}" height="${r.s}"/>`;
}
terrain.html(reliefHTML);
TIME && console.timeEnd('drawRelief');
}