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
List
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
nanahira
ygopro-core
Commits
f5c59f60
Commit
f5c59f60
authored
Sep 30, 2021
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
fe05c074
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ocgapi.cpp
ocgapi.cpp
+4
-5
No files found.
ocgapi.cpp
View file @
f5c59f60
...
@@ -144,8 +144,7 @@ extern "C" DECL_DLLEXPORT void new_card(ptr pduel, uint32 code, uint8 owner, uin
...
@@ -144,8 +144,7 @@ extern "C" DECL_DLLEXPORT void new_card(ptr pduel, uint32 code, uint8 owner, uin
if
(
!
(
location
&
LOCATION_ONFIELD
)
||
(
position
&
POS_FACEUP
))
{
if
(
!
(
location
&
LOCATION_ONFIELD
)
||
(
position
&
POS_FACEUP
))
{
pcard
->
enable_field_effect
(
true
);
pcard
->
enable_field_effect
(
true
);
ptduel
->
game_field
->
adjust_instant
();
ptduel
->
game_field
->
adjust_instant
();
}
}
if
(
location
&
LOCATION_ONFIELD
)
{
if
(
location
&
LOCATION_ONFIELD
)
{
if
(
location
==
LOCATION_MZONE
)
if
(
location
==
LOCATION_MZONE
)
pcard
->
set_status
(
STATUS_PROC_COMPLETE
,
TRUE
);
pcard
->
set_status
(
STATUS_PROC_COMPLETE
,
TRUE
);
}
}
...
@@ -197,12 +196,12 @@ extern "C" DECL_DLLEXPORT int32 query_card(ptr pduel, uint8 playerid, uint8 loca
...
@@ -197,12 +196,12 @@ extern "C" DECL_DLLEXPORT int32 query_card(ptr pduel, uint8 playerid, uint8 loca
lst
=
&
ptduel
->
game_field
->
player
[
playerid
].
list_main
;
lst
=
&
ptduel
->
game_field
->
player
[
playerid
].
list_main
;
if
(
!
lst
||
sequence
>=
lst
->
size
())
if
(
!
lst
||
sequence
>=
lst
->
size
())
pcard
=
0
;
pcard
=
0
;
else
{
else
pcard
=
(
*
lst
)[
sequence
];
pcard
=
(
*
lst
)[
sequence
];
}
}
}
if
(
pcard
)
{
if
(
pcard
)
return
pcard
->
get_infos
(
buf
,
query_flag
,
use_cache
);
return
pcard
->
get_infos
(
buf
,
query_flag
,
use_cache
);
}
else
{
else
{
*
((
int32
*
)
buf
)
=
4
;
*
((
int32
*
)
buf
)
=
4
;
return
4
;
return
4
;
...
...
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