Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
ygopro
Commits
226eed66
Commit
226eed66
authored
Nov 14, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add REPLAY_MODE_INCLUDE_CHAT
parent
8201eb34
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
gframe/replay.h
gframe/replay.h
+1
-0
gframe/single_duel.cpp
gframe/single_duel.cpp
+2
-0
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+2
-0
No files found.
gframe/replay.h
View file @
226eed66
...
...
@@ -20,6 +20,7 @@ namespace ygo {
#ifdef YGOPRO_SERVER_MODE
#define REPLAY_MODE_SAVE_IN_SERVER 0x1
#define REPLAY_MODE_WATCHER_NO_SEND 0x2
#define REPLAY_MODE_INCLUDE_CHAT 0x4
#endif // YGOPRO_SERVER_MODE
struct
ReplayHeader
{
...
...
gframe/single_duel.cpp
View file @
226eed66
...
...
@@ -38,6 +38,8 @@ void SingleDuel::Chat(DuelPlayer* dp, void* pdata, int len) {
#ifdef YGOPRO_SERVER_MODE
if
(
cache_recorder
)
NetServer
::
ReSendToPlayer
(
cache_recorder
);
if
(
replay_recorder
&&
replay_mode
&
REPLAY_MODE_INCLUDE_CHAT
)
NetServer
::
ReSendToPlayer
(
replay_recorder
);
#endif
}
void
SingleDuel
::
JoinGame
(
DuelPlayer
*
dp
,
void
*
pdata
,
bool
is_creater
)
{
...
...
gframe/tag_duel.cpp
View file @
226eed66
...
...
@@ -34,6 +34,8 @@ void TagDuel::Chat(DuelPlayer* dp, void* pdata, int len) {
#ifdef YGOPRO_SERVER_MODE
if
(
cache_recorder
)
NetServer
::
ReSendToPlayer
(
cache_recorder
);
if
(
replay_recorder
&&
replay_mode
&
REPLAY_MODE_INCLUDE_CHAT
)
NetServer
::
ReSendToPlayer
(
replay_recorder
);
#endif
}
void
TagDuel
::
JoinGame
(
DuelPlayer
*
dp
,
void
*
pdata
,
bool
is_creater
)
{
...
...
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