Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
55bdf120
Commit
55bdf120
authored
Apr 14, 2017
by
edo9300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
5a5eeabe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
gframe/duelclient.cpp
gframe/duelclient.cpp
+2
-3
gframe/single_duel.cpp
gframe/single_duel.cpp
+1
-1
gframe/single_mode.cpp
gframe/single_mode.cpp
+1
-1
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+1
-1
No files found.
gframe/duelclient.cpp
View file @
55bdf120
...
...
@@ -2917,10 +2917,9 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
return
false
;
}
case
MSG_HAND_RES
:
{
int
res1
=
BufferIO
::
ReadInt8
(
pbuf
);
int
res2
=
BufferIO
::
ReadInt8
(
pbuf
);
int
res
=
BufferIO
::
ReadInt8
(
pbuf
);
mainGame
->
stHintMsg
->
setVisible
(
false
);
mainGame
->
showcardcode
=
(
res1
-
1
)
+
((
res2
-
1
)
<<
16
);
mainGame
->
showcardcode
=
(
(
res
&
0x3
)
-
1
)
+
((((
res
>>
2
)
&
0x3
)
-
1
)
<<
16
);
mainGame
->
showcarddif
=
50
;
mainGame
->
showcardp
=
0
;
mainGame
->
showcard
=
100
;
...
...
gframe/single_duel.cpp
View file @
55bdf120
...
...
@@ -1257,7 +1257,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
return
1
;
}
case
MSG_HAND_RES
:
{
pbuf
+=
2
;
pbuf
+=
1
;
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
...
...
gframe/single_mode.cpp
View file @
55bdf120
...
...
@@ -578,7 +578,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
break
;
}
case
MSG_HAND_RES
:
{
pbuf
+=
2
;
pbuf
+=
1
;
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
break
;
}
...
...
gframe/tag_duel.cpp
View file @
55bdf120
...
...
@@ -1296,7 +1296,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
return
1
;
}
case
MSG_HAND_RES
:
{
pbuf
+=
2
;
pbuf
+=
1
;
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
NetServer
::
ReSendToPlayer
(
players
[
2
]);
...
...
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