From 944249b25f604a41e87a8770e8c59e9e768ce71f Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Tue, 14 Sep 2021 08:35:55 +0200 Subject: [PATCH] Fix some typos in comments --- source/entity_torch.js | 4 ++-- source/input.js | 4 ++-- source/map.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/entity_torch.js b/source/entity_torch.js index bf16539..05d285f 100644 --- a/source/entity_torch.js +++ b/source/entity_torch.js @@ -10,8 +10,8 @@ class entity_torch_t extends entity_t { this.p.z -= 16; this._light_pos = this.p; - // Find which wall we're on; move to the torch model towards the wall - // and the light position outwards + // Find which wall we're on; move the torch model towards the wall and + // the light position outwards for (let trace_dir of [vec3(-32,0,0), vec3(32,0,0), vec3(0,0,-32), vec3(0,0,32)]) { let trace_end = vec3_add(this.p, trace_dir); if (map_trace(this.p, vec3_add(this.p, trace_dir))) { diff --git a/source/input.js b/source/input.js index 0265870..e090f63 100755 --- a/source/input.js +++ b/source/input.js @@ -10,8 +10,8 @@ let keymap = { W: 1, p: 1, // Key[W] or ArrowU[p] A: 2, e: 2, // Key[A] or ArrowL[e]ft - S: 3, o: 3, // Key[S] or ArrowR[i]ght - D: 4, i: 4, // Key[D] or ArrowD[o]wn + S: 3, o: 3, // Key[S] or ArrowR[o]ght + D: 4, i: 4, // Key[D] or ArrowD[i]wn Q: 5, // Key[Q] E: 6, // Key[E] c: 9, // KeySpa[c]e diff --git a/source/map.js b/source/map.js index 63bdb43..6853756 100755 --- a/source/map.js +++ b/source/map.js @@ -46,7 +46,7 @@ map_load_container = async (path) => { for (let j = 0; j < b.length;) { // First value is either the x coordinate or a texture change - // sentinel value (255) followed by the texture coordinate + // sentinel value (255) followed by the texture index if (b[j] == 255) { j++; t = b[j++];