]> git.cworth.org Git - lmno.games/commit
Add messages to message area when a player joins or leaves the game
authorCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 17:06:07 +0000 (10:06 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 10 May 2020 17:06:07 +0000 (10:06 -0700)
commit77aed7dd6cb31e7dddc36d8b44c5a8e2b834d922
treec67feb29b802df6167e6f488379554490559453c
parente395fcc0bcfedbf3d31173ff0cf7cd616ab92768
Add messages to message area when a player joins or leaves the game

This replaces code we had previously for adding a message to the
message area when we completed sending a register request. The new
code is more reliable in the sense that a message is added _only_
after the server reports the event for a new player. (Previously, if
the server was offline, a message would still appear saying "Player is
now in the game!" which would be false and confusing if there was no
server responding to the register request at all.)
empires/empires-client.js