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
931c0dfb
Commit
931c0dfb
authored
May 24, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix custom room hostinfo
parent
7d83b582
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ygopro-server.coffee
ygopro-server.coffee
+4
-4
ygopro-server.js
ygopro-server.js
+4
-4
No files found.
ygopro-server.coffee
View file @
931c0dfb
...
...
@@ -2078,8 +2078,8 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
opt2
=
buffer
.
readUInt16LE
(
3
)
opt3
=
buffer
.
readUInt8
(
5
)
options
=
{
lflist
:
0
time_limit
:
180
lflist
:
settings
.
hostinfo
.
lflist
time_limit
:
settings
.
hostinfo
.
time_limit
rule
:
(
opt1
>>
5
)
&
3
mode
:
(
opt1
>>
3
)
&
3
duel_rule
:
(
if
!!
((
opt1
>>
2
)
&
1
)
then
4
else
5
)
...
...
@@ -2088,8 +2088,8 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
start_lp
:
opt2
start_hand
:
opt3
>>
4
draw_count
:
opt3
&
0xF
no_watch
:
false
auto_death
:
false
no_watch
:
settings
.
hostinfo
.
no_watch
auto_death
:
settings
.
hostinfo
.
auto_death
}
options
.
lflist
=
_
.
findIndex
lflists
,
(
list
)
->
((
options
.
rule
==
1
)
==
list
.
tcg
)
and
list
.
date
.
isBefore
()
room_title
=
info
.
pass
.
slice
(
8
).
replace
(
String
.
fromCharCode
(
0xFEFF
),
' '
)
...
...
ygopro-server.js
View file @
931c0dfb
...
...
@@ -2744,8 +2744,8 @@
opt2
=
buffer
.
readUInt16LE
(
3
);
opt3
=
buffer
.
readUInt8
(
5
);
options
=
{
lflist
:
0
,
time_limit
:
180
,
lflist
:
settings
.
hostinfo
.
lflist
,
time_limit
:
settings
.
hostinfo
.
time_limit
,
rule
:
(
opt1
>>
5
)
&
3
,
mode
:
(
opt1
>>
3
)
&
3
,
duel_rule
:
(
!!
((
opt1
>>
2
)
&
1
)
?
4
:
5
),
...
...
@@ -2754,8 +2754,8 @@
start_lp
:
opt2
,
start_hand
:
opt3
>>
4
,
draw_count
:
opt3
&
0xF
,
no_watch
:
false
,
auto_death
:
false
no_watch
:
settings
.
hostinfo
.
no_watch
,
auto_death
:
settings
.
hostinfo
.
auto_death
};
options
.
lflist
=
_
.
findIndex
(
lflists
,
function
(
list
)
{
return
((
options
.
rule
===
1
)
===
list
.
tcg
)
&&
list
.
date
.
isBefore
();
...
...
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