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
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
ygopro
Commits
d9de4498
Commit
d9de4498
authored
Apr 30, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix MSG_SWAP
parent
292eb0fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
gframe/single_duel.cpp
gframe/single_duel.cpp
+8
-0
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+8
-0
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
gframe/single_duel.cpp
View file @
d9de4498
...
...
@@ -906,11 +906,19 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
break
;
}
case
MSG_SWAP
:
{
int
c1
=
pbuf
[
4
];
int
l1
=
pbuf
[
5
];
int
s1
=
pbuf
[
6
];
int
c2
=
pbuf
[
12
];
int
l2
=
pbuf
[
13
];
int
s2
=
pbuf
[
14
];
pbuf
+=
16
;
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
RefreshSingle
(
c1
,
l1
,
s1
);
RefreshSingle
(
c2
,
l2
,
s2
);
break
;
}
case
MSG_FIELD_DISABLED
:
{
...
...
gframe/tag_duel.cpp
View file @
d9de4498
...
...
@@ -875,6 +875,12 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
break
;
}
case
MSG_SWAP
:
{
int
c1
=
pbuf
[
4
];
int
l1
=
pbuf
[
5
];
int
s1
=
pbuf
[
6
];
int
c2
=
pbuf
[
12
];
int
l2
=
pbuf
[
13
];
int
s2
=
pbuf
[
14
];
pbuf
+=
16
;
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
...
...
@@ -882,6 +888,8 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
NetServer
::
ReSendToPlayer
(
players
[
3
]);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
RefreshSingle
(
c1
,
l1
,
s1
);
RefreshSingle
(
c2
,
l2
,
s2
);
break
;
}
case
MSG_FIELD_DISABLED
:
{
...
...
ocgcore
@
982039dd
Subproject commit
db298072153b0ff5c0d287172681ca1f9c3a6a04
Subproject commit
982039dd54e2bc70f6cfa4c62b2db52f49df91b7
script
@
4b1cad55
Subproject commit
36511c63a4cfe7759e7f67e70b32266a46da0d1c
Subproject commit
4b1cad5517e638551d40b84331e33bdaacce909d
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