rlgterm.js: display the game's proper name when starting.

This commit is contained in:
John "Elwin" Edwards 2012-07-23 09:32:46 -07:00
parent 931bc5cb87
commit f1c5196829

View file

@ -779,7 +779,7 @@ function wsStart(game) {
var msgObject = JSON.parse(event.data); var msgObject = JSON.parse(event.data);
if (msgObject.t == 's') { if (msgObject.t == 's') {
termemu.resize(msgObject.h, msgObject.w); termemu.resize(msgObject.h, msgObject.w);
message("You are now playing " + msgObject.g + "."); message("You are now playing " + games[msgObject.g].name + ".");
} }
else if (msgObject.t == 'd') { else if (msgObject.t == 'd') {
writeData(msgObject.d); writeData(msgObject.d);