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
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-core
Commits
28d954ee
Commit
28d954ee
authored
Jul 13, 2019
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert using return value to set coin/dice result
parent
f9004164
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
operations.cpp
operations.cpp
+4
-12
No files found.
operations.cpp
View file @
28d954ee
...
...
@@ -6033,7 +6033,8 @@ int32 field::toss_coin(uint16 step, effect * reason_effect, uint8 reason_player,
process_instant_event
();
}
else
{
solve_continuous
(
peffect
->
get_handler_player
(),
peffect
,
e
);
core
.
units
.
begin
()
->
step
=
1
;
//call Duel.SetCoinResult in operation if necessary
return
TRUE
;
}
return
FALSE
;
}
...
...
@@ -6042,11 +6043,6 @@ int32 field::toss_coin(uint16 step, effect * reason_effect, uint8 reason_player,
process_instant_event
();
return
TRUE
;
}
case
2
:
{
for
(
uint8
i
=
0
;
i
<
5
;
++
i
)
core
.
coin_result
[
i
]
=
(
returns
.
ivalue
[
0
]
>>
(
i
*
4
))
&
0xf
;
return
TRUE
;
}
}
return
TRUE
;
}
...
...
@@ -6094,7 +6090,8 @@ int32 field::toss_dice(uint16 step, effect * reason_effect, uint8 reason_player,
process_instant_event
();
}
else
{
solve_continuous
(
peffect
->
get_handler_player
(),
peffect
,
e
);
core
.
units
.
begin
()
->
step
=
1
;
//call Duel.SetDiceResult in operation if necessary
return
TRUE
;
}
return
FALSE
;
}
...
...
@@ -6103,11 +6100,6 @@ int32 field::toss_dice(uint16 step, effect * reason_effect, uint8 reason_player,
process_instant_event
();
return
TRUE
;
}
case
2
:
{
for
(
uint8
i
=
0
;
i
<
5
;
++
i
)
core
.
dice_result
[
i
]
=
(
returns
.
ivalue
[
0
]
>>
(
i
*
4
))
&
0xf
;
return
TRUE
;
}
}
return
TRUE
;
}
...
...
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