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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
srvpro
Commits
01328843
Commit
01328843
authored
Jul 20, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
67e5038a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ygopro-server.coffee
ygopro-server.coffee
+2
-1
ygopro-server.js
ygopro-server.js
+3
-1
No files found.
ygopro-server.coffee
View file @
01328843
...
...
@@ -1445,6 +1445,8 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)->
ygopro
.
stoc_follow
'REPLAY'
,
true
,
(
buffer
,
info
,
client
,
server
)
->
room
=
ROOM_all
[
client
.
rid
]
return
settings
.
modules
.
tournament_mode
.
enabled
unless
room
if
settings
.
modules
.
enable_cloud_replay
Cloud_replay_ids
.
push
room
.
cloud_replay_id
if
settings
.
modules
.
tournament_mode
.
enabled
if
client
.
is_host
log
=
{
...
...
@@ -1461,7 +1463,6 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
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
}
。将于MATCH结束后可播放。"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
Cloud_replay_ids
.
push
room
.
cloud_replay_id
return
true
else
return
false
...
...
ygopro-server.js
View file @
01328843
...
...
@@ -1816,6 +1816,9 @@
if
(
!
room
)
{
return
settings
.
modules
.
tournament_mode
.
enabled
;
}
if
(
settings
.
modules
.
enable_cloud_replay
)
{
Cloud_replay_ids
.
push
(
room
.
cloud_replay_id
);
}
if
(
settings
.
modules
.
tournament_mode
.
enabled
)
{
if
(
client
.
is_host
)
{
log
=
{
...
...
@@ -1842,7 +1845,6 @@
}
if
(
settings
.
modules
.
enable_cloud_replay
)
{
ygopro
.
stoc_send_chat
(
client
,
"
本场比赛云录像:R#
"
+
room
.
cloud_replay_id
+
"
。将于MATCH结束后可播放。
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
Cloud_replay_ids
.
push
(
room
.
cloud_replay_id
);
}
return
true
;
}
else
{
...
...
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