Fix renderBackground not using atlas data

This commit is contained in:
Hans5958 2023-04-07 23:44:53 +07:00
parent 8e2915b75f
commit 93d66a2927
2 changed files with 3 additions and 3 deletions

View file

@ -111,7 +111,7 @@ function initDraw() {
let highlightUncharted = true
renderBackground()
renderBackground(atlas)
applyView()
container.style.cursor = "crosshair"
@ -772,7 +772,7 @@ function initDraw() {
setView(center[0], center[1])
document.addEventListener('timeupdate', () => {
renderBackground()
renderBackground(atlas)
updatePeriodGroups()
})

View file

@ -56,7 +56,7 @@ moreEntriesButton.className = "btn btn-primary d-block mb-2 mx-auto"
moreEntriesButton.id = "moreEntriesButton"
moreEntriesButton.onclick = function () {
buildObjectsList(null, null)
renderBackground()
renderBackground(atlas)
render()
}