diff --git a/xtrn/tw2/computer.js b/xtrn/tw2/computer.js index 8aba6b24aa879b406770692fdcfb3526ec9dbcce..752d5a77635eb7c3b835aa6d37b6ef647ceb2699 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 3b5f89d00bbf4f2435de8f2228f7b048b4084820..4aeeb926b4593224d586b1286602d2d94beb4f5d 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 189f1e95e6755e59c134ab5109035171d229f871..5fe1b427dc381b20918295bee0aa1ed04f36503c 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); }