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
f144324b
Commit
f144324b
authored
Dec 19, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch_getszonecount' into develop
parents
beefa669
4197fe4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libduel.cpp
libduel.cpp
+2
-2
No files found.
libduel.cpp
View file @
f144324b
...
@@ -2037,7 +2037,7 @@ int32_t scriptlib::duel_get_szone_count(lua_State *L) {
...
@@ -2037,7 +2037,7 @@ int32_t scriptlib::duel_get_szone_count(lua_State *L) {
}
else
}
else
return
luaL_error
(
L
,
"Parameter %d should be
\"
Card
\"
or
\"
Group
\"
."
,
2
);
return
luaL_error
(
L
,
"Parameter %d should be
\"
Card
\"
or
\"
Group
\"
."
,
2
);
for
(
int32_t
p
=
0
;
p
<
2
;
p
++
)
{
for
(
int32_t
p
=
0
;
p
<
2
;
p
++
)
{
uint32_t
digit
=
0x1U
;
uint32_t
digit
=
0x1
00
U
;
for
(
auto
&
pcard
:
pduel
->
game_field
->
player
[
p
].
list_szone
)
{
for
(
auto
&
pcard
:
pduel
->
game_field
->
player
[
p
].
list_szone
)
{
if
(
pcard
&&
pcard
!=
mcard
&&
!
(
mgroup
&&
mgroup
->
container
.
find
(
pcard
)
!=
mgroup
->
container
.
end
()))
{
if
(
pcard
&&
pcard
!=
mcard
&&
!
(
mgroup
&&
mgroup
->
container
.
find
(
pcard
)
!=
mgroup
->
container
.
end
()))
{
used_location
[
p
]
|=
digit
;
used_location
[
p
]
|=
digit
;
...
@@ -2046,7 +2046,7 @@ int32_t scriptlib::duel_get_szone_count(lua_State *L) {
...
@@ -2046,7 +2046,7 @@ int32_t scriptlib::duel_get_szone_count(lua_State *L) {
list_szone
[
p
].
push_back
(
nullptr
);
list_szone
[
p
].
push_back
(
nullptr
);
digit
<<=
1
;
digit
<<=
1
;
}
}
used_location
[
p
]
|=
pduel
->
game_field
->
player
[
p
].
used_location
&
0xff
00
;
used_location
[
p
]
|=
pduel
->
game_field
->
player
[
p
].
used_location
&
0xff
;
std
::
swap
(
used_location
[
p
],
pduel
->
game_field
->
player
[
p
].
used_location
);
std
::
swap
(
used_location
[
p
],
pduel
->
game_field
->
player
[
p
].
used_location
);
pduel
->
game_field
->
player
[
p
].
list_szone
.
swap
(
list_szone
[
p
]);
pduel
->
game_field
->
player
[
p
].
list_szone
.
swap
(
list_szone
[
p
]);
}
}
...
...
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