diff rlgterm.js @ 118:56a756695740

rlgterm.js: display the game's proper name when starting.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 23 Jul 2012 09:32:46 -0700
parents d7d7cdcba3b4
children 54979d35611a
line wrap: on
line diff
--- a/rlgterm.js	Wed Jul 18 17:00:05 2012 -0700
+++ b/rlgterm.js	Mon Jul 23 09:32:46 2012 -0700
@@ -779,7 +779,7 @@
     var msgObject = JSON.parse(event.data);
     if (msgObject.t == 's') {
       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') {
       writeData(msgObject.d);