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
aae00942
Commit
aae00942
authored
Feb 15, 2021
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
f05ea027
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
card.cpp
card.cpp
+4
-2
ocgapi.cpp
ocgapi.cpp
+4
-2
No files found.
card.cpp
View file @
aae00942
...
...
@@ -116,7 +116,8 @@ uint32 card::get_infos(byte* buf, int32 query_flag, int32 use_cache) {
if
(
query_flag
&
QUERY_BASE_ATTACK
)
q_cache
.
base_attack
=
*
p
++
=
get_base_attack
();
if
(
query_flag
&
QUERY_BASE_DEFENSE
)
q_cache
.
base_defense
=
*
p
++
=
get_base_defense
();
if
(
query_flag
&
QUERY_REASON
)
q_cache
.
reason
=
*
p
++
=
current
.
reason
;
}
else
{
}
else
{
if
((
query_flag
&
QUERY_ALIAS
)
&&
((
uint32
)(
tdata
=
get_code
())
!=
q_cache
.
alias
))
{
q_cache
.
alias
=
tdata
;
*
p
++
=
tdata
;
...
...
@@ -202,7 +203,8 @@ uint32 card::get_infos(byte* buf, int32 query_flag, int32 use_cache) {
q_cache
.
link
=
*
p
++
=
get_link
();
q_cache
.
link_marker
=
*
p
++
=
get_link_marker
();
}
}
else
{
}
else
{
if
((
query_flag
&
QUERY_LSCALE
)
&&
((
uint32
)(
tdata
=
get_lscale
())
!=
q_cache
.
lscale
))
{
q_cache
.
lscale
=
tdata
;
*
p
++
=
tdata
;
...
...
ocgapi.cpp
View file @
aae00942
...
...
@@ -253,7 +253,8 @@ extern "C" DECL_DLLEXPORT int32 query_field_card(ptr pduel, uint8 playerid, uint
p
+=
4
;
}
}
}
else
if
(
location
==
LOCATION_SZONE
)
{
}
else
if
(
location
==
LOCATION_SZONE
)
{
for
(
auto
&
pcard
:
player
.
list_szone
)
{
if
(
pcard
)
{
uint32
clen
=
pcard
->
get_infos
(
p
,
query_flag
,
use_cache
);
...
...
@@ -263,7 +264,8 @@ extern "C" DECL_DLLEXPORT int32 query_field_card(ptr pduel, uint8 playerid, uint
p
+=
4
;
}
}
}
else
{
}
else
{
field
::
card_vector
*
lst
=
0
;
if
(
location
==
LOCATION_HAND
)
lst
=
&
player
.
list_hand
;
...
...
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