From d22a1a5559263fe5c7bd7b8e4b7379e3b484deaf Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 23 Feb 2008 17:04:36 +0000
Subject: [PATCH] Fix a handfull of glitches.

---
 xtrn/tw2/computer.js | 4 +++-
 xtrn/tw2/players.js  | 6 +++---
 xtrn/tw2/teams.js    | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/xtrn/tw2/computer.js b/xtrn/tw2/computer.js
index 8aba6b24aa..752d5a7763 100644
--- a/xtrn/tw2/computer.js
+++ b/xtrn/tw2/computer.js
@@ -9,6 +9,7 @@ function ComputerMenu()
 		if(showhelp) {
 			console.crlf();
 			console.printfile(fname("computer.asc"));
+			showhelp=false;
 		}
 		console.attributes="HW";
 		console.write("Computer command (?=help)? ");
@@ -72,7 +73,8 @@ function ComputerMenu()
 				console.crlf();
 				console.write("Ranking Players.");
 				TWRank();
-				console.printfile(Settings.TopTenFile);
+				console.printfile(fname(Settings.TopTenFile));
+				console.crlf();
 				break;
 			case '5':
 				/* 33960 */
diff --git a/xtrn/tw2/players.js b/xtrn/tw2/players.js
index 3b5f89d00b..4aeeb926b4 100644
--- a/xtrn/tw2/players.js
+++ b/xtrn/tw2/players.js
@@ -218,7 +218,7 @@ function PlayerMove()
 	}
 	console.writeln(avail.join(", "));
 	console.write("To which sector? ");
-	var to=InputFunc(sectors.length-1);
+	var to=InputFunc(avail);
 	if(to=='')
 		return(false);
 	return(MoveTo(parseInt(to)));
@@ -255,7 +255,7 @@ function PlayerInfo(num)
 
 	console.attributes="HW";
 	console.write("   Pilot's Name: "+p.Alias);
-	if(p.PlayerNumber>0)
+	if(p.TeamNumber>0)
 		console.write("  Team ["+p.TeamNumber+"]");
 	console.crlf();
 	console.writeln("       Fighters: "+p.Fighters);
@@ -689,7 +689,7 @@ function LoadPlayer()
 	return(true);
 }
 
-function Dropfighters()
+function DropFighters()
 {
 	if(player.Sector < 8) {
 		console.writeln("You can't leave fighters in the Union (sectors 1-7)");
diff --git a/xtrn/tw2/teams.js b/xtrn/tw2/teams.js
index 189f1e95e6..5fe1b427dc 100644
--- a/xtrn/tw2/teams.js
+++ b/xtrn/tw2/teams.js
@@ -185,7 +185,7 @@ function JoinTeam()
 
 function QuitTeam()
 {
-	if(player.TeamNumber != 0) {
+	if(player.TeamNumber == 0) {
 		console.writeln("You don't belong to a Team!");
 		return(false);
 	}
-- 
GitLab