Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
f0e647fe
Commit
f0e647fe
authored
Aug 22, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix var name
parent
39af0bcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ygopro-server.coffee
ygopro-server.coffee
+2
-2
ygopro-server.js
ygopro-server.js
+3
-3
No files found.
ygopro-server.coffee
View file @
f0e647fe
...
...
@@ -1532,7 +1532,7 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
Cloud_replay_ids
.
push
room
.
cloud_replay_id
if
settings
.
modules
.
tournament_mode
.
enabled
if
client
.
is_host
log
=
{
duel
log
=
{
time
:
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
name
:
room
.
name
,
roomid
:
room
.
port
.
toString
(),
...
...
@@ -1542,7 +1542,7 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
winner
:
player
.
pos
==
room
.
winner
)
}
settings
.
modules
.
tournament_mode
.
duel_log
.
push
log
settings
.
modules
.
tournament_mode
.
duel_log
.
push
duel
log
nconf
.
myset
(
settings
,
"modules:tournament_mode:duel_log"
,
settings
.
modules
.
tournament_mode
.
duel_log
)
if
settings
.
modules
.
enable_cloud_replay
ygopro
.
stoc_send_chat
(
client
,
"本场比赛云录像:R#
#{
room
.
cloud_replay_id
}
。将于本局结束后可播放。"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
...
...
ygopro-server.js
View file @
f0e647fe
...
...
@@ -1905,7 +1905,7 @@
});
ygopro
.
stoc_follow
(
'
REPLAY
'
,
true
,
function
(
buffer
,
info
,
client
,
server
)
{
var
player
,
room
;
var
duellog
,
player
,
room
;
room
=
ROOM_all
[
client
.
rid
];
if
(
!
room
)
{
return
settings
.
modules
.
tournament_mode
.
enabled
;
...
...
@@ -1915,7 +1915,7 @@
}
if
(
settings
.
modules
.
tournament_mode
.
enabled
)
{
if
(
client
.
is_host
)
{
log
=
{
duel
log
=
{
time
:
moment
().
format
(
'
YYYY-MM-DD HH:mm:ss
'
),
name
:
room
.
name
,
roomid
:
room
.
port
.
toString
(),
...
...
@@ -1934,7 +1934,7 @@
return
results
;
})()
};
settings
.
modules
.
tournament_mode
.
duel_log
.
push
(
log
);
settings
.
modules
.
tournament_mode
.
duel_log
.
push
(
duel
log
);
nconf
.
myset
(
settings
,
"
modules:tournament_mode:duel_log
"
,
settings
.
modules
.
tournament_mode
.
duel_log
);
}
if
(
settings
.
modules
.
enable_cloud_replay
)
{
...
...
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