From 38c7532bbf11ca48c67cd231fb4d581d9c13ad4f Mon Sep 17 00:00:00 2001
From: Rob <rob@synchro.net>
Date: Sun, 20 Sep 2020 19:27:24 -0700
Subject: [PATCH] Force a screen pause on abnormal exit.

---
 xtrn/tw2/tw2.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xtrn/tw2/tw2.js b/xtrn/tw2/tw2.js
index 4f7c393629..bd0aa82409 100644
--- a/xtrn/tw2/tw2.js
+++ b/xtrn/tw2/tw2.js
@@ -322,6 +322,7 @@ try {
 		console.attributes="R";
 		console.writeln("The game has not been initialized.");
 		console.writeln("Please notify the SysOp.");
+		console.pause();
 		exit(0);
 	}
 	
@@ -332,8 +333,10 @@ try {
 	console.attributes="W";
 	console.writeln("Initializing...");
 	console.writeln("Searching my records for your name.");
-	if(!LoadPlayer())
+	if(!LoadPlayer()) {
+		console.pause();
 		exit(0);
+	}
 
 	console.pause();
 	while(player.KilledBy==0 && exit_tw2==false) {
-- 
GitLab