]> git.cworth.org Git - empires-html/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)
commit6ae3309fc78ab84e973562dee6c1dff94abcccfe
treecb20b05bc22d8ce781616e51211e91379d3bd7b8
parent923f3bacb4066186ce779c5152643739d2939c34
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-client.js