Skip to content
Snippets Groups Projects
Commit fe91a55a authored by rswindell's avatar rswindell
Browse files

Save/restore ctrl-key handler and sys_status correctly

parent 4b0e2da6
Branches
Tags
No related merge requests found
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
Matt Johnson ( MCMLXXIX@BBS.THEBROKENBUBBLE.COM ) Matt Johnson ( MCMLXXIX@BBS.THEBROKENBUBBLE.COM )
*/ */
var oldpass=console.ctrl_key_passthru;
var game_id = "boggle"; var game_id = "boggle";
load("graphic.js"); load("graphic.js");
...@@ -514,7 +513,9 @@ function open() { ...@@ -514,7 +513,9 @@ function open() {
client.subscribe(game_id,"players"); client.subscribe(game_id,"players");
data.players[useralias].laston = time(); data.players[useralias].laston = time();
data.storePlayer(); data.storePlayer();
js.on_exit("console.ctrlkey_passthru = " + console.ctrlkey_passthru);
console.ctrlkey_passthru="+ACGKLOPQRTUVWXYZ"; console.ctrlkey_passthru="+ACGKLOPQRTUVWXYZ";
js.on_exit("bbs.sys_status = " + bbs.sys_status);
bbs.sys_status|=SS_MOFF; bbs.sys_status|=SS_MOFF;
bbs.sys_status |= SS_PAUSEOFF; bbs.sys_status |= SS_PAUSEOFF;
if(file_exists(root + "boggle.bin")) { if(file_exists(root + "boggle.bin")) {
...@@ -531,9 +532,6 @@ function open() { ...@@ -531,9 +532,6 @@ function open() {
function close() { function close() {
client.unsubscribe(game_id,"players"); client.unsubscribe(game_id,"players");
console.ctrlkey_passthru=oldpass;
bbs.sys_status&=~SS_MOFF;
bbs.sys_status&=~SS_PAUSEOFF;
console.attributes=ANSI_NORMAL; console.attributes=ANSI_NORMAL;
console.clear(); console.clear();
var splash_filename=root + "exit.bin"; var splash_filename=root + "exit.bin";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment