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
9ad676d3
Commit
9ad676d3
authored
Apr 14, 2017
by
edo9300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replay modemessages fix
parent
55bdf120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+4
-0
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+9
-0
No files found.
gframe/duelclient.cpp
View file @
9ad676d3
...
@@ -2911,6 +2911,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -2911,6 +2911,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
}
}
case
MSG_ROCK_PAPER_SCISSORS
:
{
case
MSG_ROCK_PAPER_SCISSORS
:
{
/*int player = */
mainGame
->
LocalPlayer
(
BufferIO
::
ReadInt8
(
pbuf
));
/*int player = */
mainGame
->
LocalPlayer
(
BufferIO
::
ReadInt8
(
pbuf
));
if
(
mainGame
->
dInfo
.
isReplay
&&
mainGame
->
dInfo
.
isReplaySkiping
)
return
true
;
mainGame
->
gMutex
.
Lock
();
mainGame
->
gMutex
.
Lock
();
mainGame
->
PopupElement
(
mainGame
->
wHand
);
mainGame
->
PopupElement
(
mainGame
->
wHand
);
mainGame
->
gMutex
.
Unlock
();
mainGame
->
gMutex
.
Unlock
();
...
@@ -2918,6 +2920,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -2918,6 +2920,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
}
}
case
MSG_HAND_RES
:
{
case
MSG_HAND_RES
:
{
int
res
=
BufferIO
::
ReadInt8
(
pbuf
);
int
res
=
BufferIO
::
ReadInt8
(
pbuf
);
if
(
mainGame
->
dInfo
.
isReplay
&&
mainGame
->
dInfo
.
isReplaySkiping
)
return
true
;
mainGame
->
stHintMsg
->
setVisible
(
false
);
mainGame
->
stHintMsg
->
setVisible
(
false
);
mainGame
->
showcardcode
=
((
res
&
0x3
)
-
1
)
+
((((
res
>>
2
)
&
0x3
)
-
1
)
<<
16
);
mainGame
->
showcardcode
=
((
res
&
0x3
)
-
1
)
+
((((
res
>>
2
)
&
0x3
)
-
1
)
<<
16
);
mainGame
->
showcarddif
=
50
;
mainGame
->
showcarddif
=
50
;
...
...
gframe/replay_mode.cpp
View file @
9ad676d3
...
@@ -743,6 +743,15 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
...
@@ -743,6 +743,15 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
break
;
break
;
}
}
case
MSG_ROCK_PAPER_SCISSORS
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
return
ReadReplayResponse
();
}
case
MSG_HAND_RES
:
{
pbuf
+=
1
;
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
break
;
}
case
MSG_ANNOUNCE_RACE
:
{
case
MSG_ANNOUNCE_RACE
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
player
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
5
;
pbuf
+=
5
;
...
...
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