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
bdfc7285
Commit
bdfc7285
authored
Jan 31, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update
parent
1d11840d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
libcard.cpp
libcard.cpp
+4
-1
No files found.
libcard.cpp
View file @
bdfc7285
...
@@ -89,6 +89,9 @@ int32 scriptlib::card_is_fusion_code(lua_State *L) {
...
@@ -89,6 +89,9 @@ int32 scriptlib::card_is_fusion_code(lua_State *L) {
uint32
code1
=
pcard
->
get_code
();
uint32
code1
=
pcard
->
get_code
();
uint32
code2
=
pcard
->
get_another_code
();
uint32
code2
=
pcard
->
get_another_code
();
std
::
unordered_set
<
uint32
>
fcode
;
std
::
unordered_set
<
uint32
>
fcode
;
fcode
.
insert
(
code1
);
if
(
code2
)
fcode
.
insert
(
code2
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
fcode
.
insert
(
eset
[
i
]
->
get_value
(
pcard
));
fcode
.
insert
(
eset
[
i
]
->
get_value
(
pcard
));
uint32
count
=
lua_gettop
(
L
)
-
1
;
uint32
count
=
lua_gettop
(
L
)
-
1
;
...
@@ -97,7 +100,7 @@ int32 scriptlib::card_is_fusion_code(lua_State *L) {
...
@@ -97,7 +100,7 @@ int32 scriptlib::card_is_fusion_code(lua_State *L) {
if
(
lua_isnil
(
L
,
i
+
2
))
if
(
lua_isnil
(
L
,
i
+
2
))
continue
;
continue
;
uint32
tcode
=
lua_tointeger
(
L
,
i
+
2
);
uint32
tcode
=
lua_tointeger
(
L
,
i
+
2
);
if
(
code1
==
tcode
||
(
code2
&&
code2
==
tcode
)
||
fcode
.
find
(
tcode
)
!=
fcode
.
end
())
{
if
(
fcode
.
find
(
tcode
)
!=
fcode
.
end
())
{
result
=
TRUE
;
result
=
TRUE
;
break
;
break
;
}
}
...
...
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