Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
5576cea5
Commit
5576cea5
authored
Apr 22, 2020
by
rswindell
Browse files
Use console.print() instead of console.write() so that save/restoreline() works
correctly.
parent
a1f5b9d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
xtrn/tw2/tw2.js
xtrn/tw2/tw2.js
+4
-4
No files found.
xtrn/tw2/tw2.js
View file @
5576cea5
...
...
@@ -68,7 +68,7 @@ function Menu(sector)
console
.
writeln
(
"
You have
"
+
player
.
TurnsLeft
+
"
turns left.
"
);
}
console
.
attributes
=
"
HC
"
;
console
.
w
rit
e
(
"
Command (?=Help)?
"
);
console
.
p
ri
n
t
(
"
Command (?=Help)?
"
);
var
valid
=
new
Array
(
'
A
'
,
'
C
'
,
'
D
'
,
'
E
'
,
'
F
'
,
'
G
'
,
'
I
'
,
'
L
'
,
'
M
'
,
'
P
'
,
'
Q
'
,
'
T
'
,
'
Z
'
,
'
?
'
);
var
i
;
for
(
i
=
0
;
i
<
sector
.
Warps
.
length
;
i
++
)
{
...
...
@@ -103,7 +103,7 @@ function Menu(sector)
if
(
user
.
level
<
90
)
break
;
console
.
writeln
(
"
<TW Editor>
"
);
console
.
w
rit
e
(
"
Do you wish to use the editor? Y/N [N]
"
);
console
.
p
ri
n
t
(
"
Do you wish to use the editor? Y/N [N]
"
);
if
(
InputFunc
([
'
Y
'
,
'
N
'
])
==
'
Y
'
)
{
console
.
writeln
(
"
Running Tradewars ][ Editor...
"
);
Editor
();
...
...
@@ -168,7 +168,7 @@ function Menu(sector)
console
.
attributes
=
"
W
"
;
console
.
writeln
(
"
<Quit>
"
);
console
.
attributes
=
"
W
"
;
console
.
w
rit
e
(
"
Are you sure (Y/N)?
"
);
console
.
p
ri
n
t
(
"
Are you sure (Y/N)?
"
);
if
(
InputFunc
([
'
Y
'
,
'
N
'
])
==
'
Y
'
)
{
exit_tw2
=
true
;
return
;
...
...
@@ -239,7 +239,7 @@ function do_exit()
function
Instructions
()
{
console
.
w
rit
e
(
"
Do you want instructions (Y/N) [N]?
"
);
console
.
p
ri
n
t
(
"
Do you want instructions (Y/N) [N]?
"
);
if
(
InputFunc
([
'
Y
'
,
'
N
'
])
==
'
Y
'
)
{
console
.
crlf
();
console
.
printfile
(
fname
(
"
twinstr.doc
"
),
P_CPM_EOF
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment