]> git.cworth.org Git - empires-server/commitdiff
Fix some typos in some code comments
authorCarl Worth <cworth@cworth.org>
Fri, 26 Jun 2020 14:42:37 +0000 (07:42 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 26 Jun 2020 14:43:00 +0000 (07:43 -0700)
Mostly some confusion of "this", "the", and "that".

empathy.js

index 46d7f79ff876c3f1de89f75cb76b2ec9a22f3eac..428627ce863d6913311aee67bd9caccdc0ee20c0 100644 (file)
@@ -49,7 +49,7 @@ class Empathy extends Game {
 
   reset() {
 
 
   reset() {
 
-    /* Before closing out the current round, we accumulate that score
+    /* Before closing out the current round, we accumulate the score
      * for each player into their runnning total. */
     for (let score of this.state.scores.scores) {
       const player = this.players.find(p => p.name === score.player);
      * for each player into their runnning total. */
     for (let score of this.state.scores.scores) {
       const player = this.players.find(p => p.name === score.player);
@@ -319,7 +319,7 @@ class Empathy extends Game {
     this.state.players_judging.delete(player.name);
     this.state.players_judged.push(player.name);
 
     this.state.players_judging.delete(player.name);
     this.state.players_judged.push(player.name);
 
-    /* And notify all players this this player has judged. */
+    /* And notify all players that this player has judged. */
     this.broadcast_event_object('player-judged', player.name);
 
     /* If no players are left in the judging list then we don't need
     this.broadcast_event_object('player-judged', player.name);
 
     /* If no players are left in the judging list then we don't need
@@ -363,7 +363,7 @@ class Empathy extends Game {
       }, PHASE_IDLE_TIMEOUT * 1000);
     }
 
       }, PHASE_IDLE_TIMEOUT * 1000);
     }
 
-    /* Notify all players this this player is actively judging. */
+    /* Notify all players that this player is actively judging. */
     this.state.players_judging.add(player.name);
     this.broadcast_event_object('player-judging', player.name);
 
     this.state.players_judging.add(player.name);
     this.broadcast_event_object('player-judging', player.name);