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
73ae206c
Commit
73ae206c
authored
Jan 05, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix replays being cut
parent
daf08145
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ygopro-server.coffee
ygopro-server.coffee
+3
-3
No files found.
ygopro-server.coffee
View file @
73ae206c
...
@@ -2454,10 +2454,10 @@ ygopro.stoc_follow 'DUEL_END', false, (buffer, info, client, server, datas)->
...
@@ -2454,10 +2454,10 @@ ygopro.stoc_follow 'DUEL_END', false, (buffer, info, client, server, datas)->
return
unless
room
and
settings
.
modules
.
replay_delay
and
room
.
hostinfo
.
mode
==
1
return
unless
room
and
settings
.
modules
.
replay_delay
and
room
.
hostinfo
.
mode
==
1
SOCKET_flush_data
(
client
,
datas
)
SOCKET_flush_data
(
client
,
datas
)
CLIENT_send_replays
(
client
,
room
)
CLIENT_send_replays
(
client
,
room
)
if !room.replays_sent_to_watchers
if
!
room
.
replays_sent_to_watchers
and
(
client
.
pos
==
0
or
!
room
.
dueling_players
[
0
]
or
room
.
dueling_players
[
0
].
closed
)
room
.
replays_sent_to_watchers
=
true
room
.
replays_sent_to_watchers
=
true
#
for player in room.players when player and player.pos > 3
for
player
in
room
.
players
when
player
and
player
.
pos
>
3
#
CLIENT_send_replays(player, room)
CLIENT_send_replays
(
player
,
room
)
for
player
in
room
.
watchers
when
player
for
player
in
room
.
watchers
when
player
CLIENT_send_replays
(
player
,
room
)
CLIENT_send_replays
(
player
,
room
)
...
...
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