Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
5aaf32d9
Commit
5aaf32d9
authored
Aug 14, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f1cbf333
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
ocgcore/operations.cpp
ocgcore/operations.cpp
+12
-6
No files found.
ocgcore/operations.cpp
View file @
5aaf32d9
...
...
@@ -1014,12 +1014,18 @@ int32 field::control_adjust(uint16 step) {
card_set
*
adjust_set
=
(
card_set
*
)
core
.
units
.
begin
()
->
ptarget
;
delete
adjust_set
;
core
.
control_adjust_set
[
0
].
insert
(
core
.
control_adjust_set
[
1
].
begin
(),
core
.
control_adjust_set
[
1
].
end
());
for
(
auto
cit
=
core
.
control_adjust_set
[
0
].
begin
();
cit
!=
core
.
control_adjust_set
[
0
].
end
();
++
cit
)
{
(
*
cit
)
->
filter_disable_related_cards
();
if
((
*
cit
)
->
unique_code
)
add_unique_card
(
*
cit
);
raise_single_event
((
*
cit
),
0
,
EVENT_CONTROL_CHANGED
,
0
,
REASON_RULE
,
0
,
0
,
0
);
for
(
auto
cit
=
core
.
control_adjust_set
[
0
].
begin
();
cit
!=
core
.
control_adjust_set
[
0
].
end
();
)
{
card
*
pcard
=
*
cit
++
;
if
(
!
(
pcard
->
current
.
location
&
LOCATION_ONFIELD
))
{
core
.
control_adjust_set
[
0
].
erase
(
pcard
);
continue
;
}
pcard
->
filter_disable_related_cards
();
if
(
pcard
->
unique_code
)
add_unique_card
(
pcard
);
raise_single_event
(
pcard
,
0
,
EVENT_CONTROL_CHANGED
,
0
,
REASON_RULE
,
0
,
0
,
0
);
}
if
(
core
.
control_adjust_set
[
0
].
size
())
raise_event
(
&
core
.
control_adjust_set
[
0
],
EVENT_CONTROL_CHANGED
,
0
,
0
,
0
,
0
,
0
);
process_single_event
();
process_instant_event
();
...
...
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