Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
aded1e77
Commit
aded1e77
authored
12 years ago
by
art
Browse files
Options
Downloads
Patches
Plain Diff
Fix InterBBS bug affecting eel top scores. InterBBS eel high score should now work.
parent
2d66368f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/fatfish/fatfish.js
+6
-2
6 additions, 2 deletions
xtrn/fatfish/fatfish.js
with
6 additions
and
2 deletions
xtrn/fatfish/fatfish.js
+
6
−
2
View file @
aded1e77
...
...
@@ -1438,7 +1438,9 @@ function show_json_scores() {
if
(
json_players
!=
undefined
)
{
for
(
var
b
=
0
;
b
<
json_players
.
length
;
b
++
)
{
// Each player.
// Each player.
//log("DEBUG: parsing player: " + json_players[b] + "@" + bbses[a]);
var
col
=
ANSI
.
BOLD
+
ANSI
.
FG_WHITE
;
if
(
json_players
[
b
].
length
<=
6
)
{
console
.
write
(
col
+
json_players
[
b
]
+
"
:
"
+
ANSI
.
DEFAULT
);
...
...
@@ -1463,10 +1465,12 @@ function show_json_scores() {
console
.
write
(
"
\t
"
+
toTitleCase
(
scores
[
bbses
[
a
]][
json_players
[
b
]].
best_eel
.
type
)
+
ANSI
.
DEFAULT
+
"
,
"
+
(
scores
[
bbses
[
a
]][
json_players
[
b
]].
best_eel
.
length
/
10
).
toFixed
(
1
)
+
"
cm,
"
+
scores
[
bbses
[
a
]][
json_players
[
b
]].
best_eel
.
weight
+
"
kg.
"
);
// Check top InterBBS score.
if
(
scores
[
bbses
[
a
]][
json_players
[
b
]].
best_eel
.
length
>
top_eel_length
)
{
if
(
Number
(
scores
[
bbses
[
a
]][
json_players
[
b
]].
best_eel
.
length
)
>
Number
(
top_eel_length
)
)
{
// This is the new top score.
top_eel_length
=
scores
[
bbses
[
a
]][
json_players
[
b
]].
best_eel
.
length
;
//log("DEBUG: found new --> top eel: " + top_eel_length);
}
//log("DEBUG: player best_eel: " + scores[bbses[a]][json_players[b]].best_eel.length);
}
if
(
scores
[
bbses
[
a
]][
json_players
[
b
]].
best_pike
!=
undefined
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment