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
41a20bd3
Commit
41a20bd3
authored
Jul 16, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update time limit
parent
e8267477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ygopro-server.coffee
ygopro-server.coffee
+7
-3
No files found.
ygopro-server.coffee
View file @
41a20bd3
...
...
@@ -2512,9 +2512,13 @@ ygopro.ctos_follow 'RESPONSE', false, (buffer, info, client, server)->
room
.
last_active_time
=
moment
()
return
ygopro
.
stoc_follow
'TIME_LIMIT'
,
fals
e
,
(
buffer
,
info
,
client
,
server
)
->
ygopro
.
stoc_follow
'TIME_LIMIT'
,
tru
e
,
(
buffer
,
info
,
client
,
server
)
->
room
=
ROOM_all
[
client
.
rid
]
return
unless
room
and
settings
.
modules
.
heartbeat_detection
.
enabled
and
room
.
turn
and
room
.
turn
>
0
and
!
room
.
windbot
return
unless
room
if
settings
.
modules
.
reconnect
.
enabled
and
client
.
closed
ygopro
.
ctos_send
(
server
,
'TIME_CONFIRM'
)
return
true
return
unless
settings
.
modules
.
heartbeat_detection
.
enabled
and
room
.
turn
and
room
.
turn
>
0
and
!
room
.
windbot
check
=
false
if
room
.
hostinfo
.
mode
!=
2
check
=
(
client
.
is_first
and
info
.
player
==
0
)
or
(
!
client
.
is_first
and
info
.
player
==
1
)
...
...
@@ -2540,7 +2544,7 @@ ygopro.stoc_follow 'TIME_LIMIT', false, (buffer, info, client, server)->
if
check
extend_time
=
settings
.
modules
.
reconnect
.
enabled
and
client
.
reconnecting
CLIENT_heartbeat_register
(
client
,
false
,
extend_time
)
return
return
false
ygopro
.
ctos_follow
'TIME_CONFIRM'
,
false
,
(
buffer
,
info
,
client
,
server
)
->
room
=
ROOM_all
[
client
.
rid
]
...
...
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