]> git.cworth.org Git - empires-html/commitdiff
Drop the message-area notifications for new players joining
authorCarl Worth <cworth@cworth.org>
Mon, 11 May 2020 23:06:53 +0000 (16:06 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 11 May 2020 23:06:53 +0000 (16:06 -0700)
The names are consistently added to the players list below, so we
don't really need messages here, (plus, the messages got distracting
in later phases of the game such as "reveal" unless the player
manually cleared them away).

empires-client.js

index 3be0670523869a38aca4058ff63d69249709fa6b..39c59ece8156b358f08bf8fc2a2a06abd4b05001 100644 (file)
@@ -62,8 +62,6 @@ events.addEventListener("player-join", function(event) {
   li.innerText = player.name;
   players.appendChild(li);
 
-  add_message("success", player.name + " is now in the game!");
-
   /* Force players list to be visible. */
   players_div.style.display = "block";
 });