Skip to content

Commit

Permalink
off by one now
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Acker committed Jul 18, 2024
1 parent 24f9d83 commit 91861fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions html/js/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ws.onmessage = (event) => {
tr.classList.add("data");
tr.classList.add(gameType);

// TODO: this needlessly adds data for ignored messages to be gc'd
// TODO: does this needlessly add data for ignored messages to be gc'd?
infobox.set(tr, data);

if (message.Taxi) {
Expand Down Expand Up @@ -218,7 +218,7 @@ ws.onmessage = (event) => {
cur = hop;
}

tr.append(makeTd(route.length > 1 ? `${dist.toFixed(2)}ly` : ""));
tr.append(makeTd(route.length > 2 ? `${dist.toFixed(2)}ly` : ""));

const td = makeTd(`${longest.toFixed(2)}ly`);
if (longest >= 200) {
Expand Down Expand Up @@ -269,7 +269,7 @@ ws.onmessage = (event) => {
makeTd(message.systemName));
addRow(updates, tr);
}
}
};


board.addEventListener("click", (ev) => {
Expand Down
2 changes: 1 addition & 1 deletion html/js/board.min.js

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

0 comments on commit 91861fc

Please sign in to comment.