Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
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
Hide 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,13 +1014,19 @@ int32 field::control_adjust(uint16 step) {
...
@@ -1014,13 +1014,19 @@ int32 field::control_adjust(uint16 step) {
card_set* adjust_set = (card_set*)core.units.begin()->ptarget;
card_set* adjust_set = (card_set*)core.units.begin()->ptarget;
delete adjust_set;
delete adjust_set;
core.control_adjust_set[0].insert(core.control_adjust_set[1].begin(), core.control_adjust_set[1].end());
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
)
{
for(auto cit = core.control_adjust_set[0].begin(); cit != core.control_adjust_set[0].end(); ) {
(
*
cit
)
->
filter_disable_related_cards
();
card* pcard = *cit++;
if
((
*
cit
)
->
unique_code
)
if(!(pcard->current.location & LOCATION_ONFIELD)) {
add_unique_card
(
*
cit
);
core.control_adjust_set[0].erase(pcard);
raise_single_event
((
*
cit
),
0
,
EVENT_CONTROL_CHANGED
,
0
,
REASON_RULE
,
0
,
0
,
0
);
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);
}
}
raise_event
(
&
core
.
control_adjust_set
[
0
],
EVENT_CONTROL_CHANGED
,
0
,
0
,
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_single_event();
process_instant_event();
process_instant_event();
return FALSE;
return FALSE;
...
...
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