Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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-core
Commits
9e1dc567
Commit
9e1dc567
authored
Jul 07, 2019
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send MSG_RETRY when fail to verify...
...announced card name
parent
0e422414
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
playerop.cpp
playerop.cpp
+8
-12
processor.cpp
processor.cpp
+1
-2
No files found.
playerop.cpp
View file @
9e1dc567
...
@@ -981,27 +981,23 @@ int32 field::announce_card(int16 step, uint8 playerid, uint32 ttype) {
...
@@ -981,27 +981,23 @@ int32 field::announce_card(int16 step, uint8 playerid, uint32 ttype) {
return
FALSE
;
return
FALSE
;
}
else
{
}
else
{
int32
code
=
returns
.
ivalue
[
0
];
int32
code
=
returns
.
ivalue
[
0
];
bool
retry
=
false
;
card_data
data
;
card_data
data
;
read_card
(
code
,
&
data
);
read_card
(
code
,
&
data
);
if
(
!
data
.
code
)
{
if
(
!
data
.
code
)
{
retry
=
true
;
pduel
->
write_buffer8
(
MSG_RETRY
);
}
else
if
(
core
.
select_options
.
size
()
==
0
)
{
return
FALSE
;
}
if
(
core
.
select_options
.
size
()
==
0
)
{
if
(
!
(
data
.
type
&
ttype
))
{
if
(
!
(
data
.
type
&
ttype
))
{
retry
=
true
;
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
}
}
}
else
{
}
else
{
if
(
!
is_declarable
(
data
,
core
.
select_options
))
{
if
(
!
is_declarable
(
data
,
core
.
select_options
))
{
retry
=
true
;
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
}
}
}
}
if
(
retry
)
{
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_MESSAGE
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer32
(
1421
);
return
announce_card
(
0
,
playerid
,
ttype
);
}
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_CODE
);
pduel
->
write_buffer8
(
HINT_CODE
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer8
(
playerid
);
...
...
processor.cpp
View file @
9e1dc567
...
@@ -546,8 +546,7 @@ int32 field::process() {
...
@@ -546,8 +546,7 @@ int32 field::process() {
if
(
announce_card
(
it
->
step
,
it
->
arg1
,
it
->
arg2
))
{
if
(
announce_card
(
it
->
step
,
it
->
arg1
,
it
->
arg2
))
{
core
.
units
.
pop_front
();
core
.
units
.
pop_front
();
}
else
{
}
else
{
if
(
it
->
step
==
0
)
it
->
step
++
;
it
->
step
++
;
}
}
return
PROCESSOR_WAITING
+
pduel
->
bufferlen
;
return
PROCESSOR_WAITING
+
pduel
->
bufferlen
;
}
}
...
...
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