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
11854bcf
Commit
11854bcf
authored
Apr 24, 2017
by
edo9300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for single mode
parent
00c7c85c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
field.cpp
field.cpp
+1
-1
ocgapi.cpp
ocgapi.cpp
+1
-1
No files found.
field.cpp
View file @
11854bcf
...
...
@@ -115,6 +115,7 @@ field::~field() {
}
void
field
::
reload_field_info
()
{
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
pduel
->
write_buffer8
(
core
.
duel_rule
-
1
);
for
(
int32
playerid
=
0
;
playerid
<
2
;
++
playerid
)
{
pduel
->
write_buffer32
(
player
[
playerid
].
lp
);
for
(
auto
cit
=
player
[
playerid
].
list_mzone
.
begin
();
cit
!=
player
[
playerid
].
list_mzone
.
end
();
++
cit
)
{
...
...
@@ -153,7 +154,6 @@ void field::reload_field_info() {
pduel
->
write_buffer8
(
chit
->
triggering_sequence
);
pduel
->
write_buffer32
(
peffect
->
description
);
}
pduel
->
write_buffer8
(
core
.
duel_rule
-
1
);
}
// The core of moving cards, and Debug.AddCard() will call this function directly.
// check Fusion/S/X monster redirection by the rule, set fieldid_r
...
...
ocgapi.cpp
View file @
11854bcf
...
...
@@ -297,6 +297,7 @@ extern "C" DECL_DLLEXPORT int32 query_field_card(ptr pduel, uint8 playerid, uint
extern
"C"
DECL_DLLEXPORT
int32
query_field_info
(
ptr
pduel
,
byte
*
buf
)
{
duel
*
ptduel
=
(
duel
*
)
pduel
;
*
buf
++
=
MSG_RELOAD_FIELD
;
*
buf
++
=
ptduel
->
game_field
->
core
.
duel_rule
;
for
(
int
playerid
=
0
;
playerid
<
2
;
++
playerid
)
{
auto
&
player
=
ptduel
->
game_field
->
player
[
playerid
];
*
((
int
*
)(
buf
))
=
player
.
lp
;
...
...
@@ -340,7 +341,6 @@ extern "C" DECL_DLLEXPORT int32 query_field_info(ptr pduel, byte* buf) {
*
((
int
*
)(
buf
))
=
peffect
->
description
;
buf
+=
4
;
}
*
buf
++
=
ptduel
->
game_field
->
core
.
duel_rule
;
return
0
;
}
extern
"C"
DECL_DLLEXPORT
void
set_responsei
(
ptr
pduel
,
int32
value
)
{
...
...
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