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
d66fa8db
Commit
d66fa8db
authored
Jul 04, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
operator
parent
4027d8fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ygopro-server.coffee
ygopro-server.coffee
+3
-3
ygopro-server.js
ygopro-server.js
+3
-3
No files found.
ygopro-server.coffee
View file @
d66fa8db
...
...
@@ -1462,7 +1462,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
client
.
write
buffer
else
ygopro
.
stoc_die
(
client
,
"${watch_denied}"
)
else
if
room
.
no_watch
and
room
.
players
.
length
=
=
(
if
room
.
hostinfo
.
mode
==
2
then
4
else
2
)
else
if
room
.
no_watch
and
room
.
players
.
length
>
=
(
if
room
.
hostinfo
.
mode
==
2
then
4
else
2
)
ygopro
.
stoc_die
(
client
,
"${watch_denied_room}"
)
else
#client.room = room
...
...
@@ -1579,7 +1579,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
client
.
write
buffer
else
ygopro
.
stoc_die
(
client
,
"${watch_denied}"
)
else
if
room
.
no_watch
and
room
.
players
.
length
=
=
(
if
room
.
hostinfo
.
mode
==
2
then
4
else
2
)
else
if
room
.
no_watch
and
room
.
players
.
length
>
=
(
if
room
.
hostinfo
.
mode
==
2
then
4
else
2
)
ygopro
.
stoc_die
(
client
,
"${watch_denied_room}"
)
else
for
player
in
room
.
players
when
player
and
player
!=
client
and
player
.
name
==
client
.
name
...
...
@@ -1662,7 +1662,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
client
.
write
buffer
else
ygopro
.
stoc_die
(
client
,
"${watch_denied}"
)
else
if
room
.
no_watch
and
room
.
players
.
length
=
=
(
if
room
.
hostinfo
.
mode
==
2
then
4
else
2
)
else
if
room
.
no_watch
and
room
.
players
.
length
>
=
(
if
room
.
hostinfo
.
mode
==
2
then
4
else
2
)
ygopro
.
stoc_die
(
client
,
"${watch_denied_room}"
)
else
client
.
setTimeout
(
300000
)
#连接后超时5分钟
...
...
ygopro-server.js
View file @
d66fa8db
...
...
@@ -1787,7 +1787,7 @@
}
else
{
ygopro
.
stoc_die
(
client
,
"
${watch_denied}
"
);
}
}
else
if
(
room
.
no_watch
&&
room
.
players
.
length
==
=
(
room
.
hostinfo
.
mode
===
2
?
4
:
2
))
{
}
else
if
(
room
.
no_watch
&&
room
.
players
.
length
>
=
(
room
.
hostinfo
.
mode
===
2
?
4
:
2
))
{
ygopro
.
stoc_die
(
client
,
"
${watch_denied_room}
"
);
}
else
{
client
.
setTimeout
(
300000
);
...
...
@@ -1929,7 +1929,7 @@
}
else
{
ygopro
.
stoc_die
(
client
,
"
${watch_denied}
"
);
}
}
else
if
(
room
.
no_watch
&&
room
.
players
.
length
==
=
(
room
.
hostinfo
.
mode
===
2
?
4
:
2
))
{
}
else
if
(
room
.
no_watch
&&
room
.
players
.
length
>
=
(
room
.
hostinfo
.
mode
===
2
?
4
:
2
))
{
ygopro
.
stoc_die
(
client
,
"
${watch_denied_room}
"
);
}
else
{
ref5
=
room
.
players
;
...
...
@@ -2008,7 +2008,7 @@
}
else
{
ygopro
.
stoc_die
(
client
,
"
${watch_denied}
"
);
}
}
else
if
(
room
.
no_watch
&&
room
.
players
.
length
==
=
(
room
.
hostinfo
.
mode
===
2
?
4
:
2
))
{
}
else
if
(
room
.
no_watch
&&
room
.
players
.
length
>
=
(
room
.
hostinfo
.
mode
===
2
?
4
:
2
))
{
ygopro
.
stoc_die
(
client
,
"
${watch_denied_room}
"
);
}
else
{
client
.
setTimeout
(
300000
);
...
...
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