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
084b0300
Commit
084b0300
authored
Jan 01, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pick deck check
parent
ab4ae247
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gframe/single_duel.cpp
gframe/single_duel.cpp
+5
-5
No files found.
gframe/single_duel.cpp
View file @
084b0300
...
...
@@ -457,9 +457,6 @@ void SingleDuel::StartDuel(DuelPlayer* dp) {
hand_result
[
1
]
=
0
;
players
[
0
]
->
state
=
CTOS_HAND_RESULT
;
players
[
1
]
->
state
=
CTOS_HAND_RESULT
;
//2pick
pick_deck_saved
[
0
]
=
false
;
pick_deck_saved
[
1
]
=
false
;
}
void
SingleDuel
::
HandResult
(
DuelPlayer
*
dp
,
unsigned
char
res
)
{
if
(
res
>
3
)
...
...
@@ -521,10 +518,13 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
SwapPickDeck
();
swapped
=
true
;
}
if
(
pick_deck_saved
[
0
]
&&
pick_deck_saved
[
1
])
{
//2pick deck check
if
(
pick_deck_saved
[
0
])
pdeck
[
0
]
=
pick_deck
[
0
];
if
(
pick_deck_saved
[
1
])
pdeck
[
1
]
=
pick_deck
[
1
];
}
pick_deck_saved
[
0
]
=
false
;
pick_deck_saved
[
1
]
=
false
;
dp
->
state
=
CTOS_RESPONSE
;
ReplayHeader
rh
;
rh
.
id
=
0x31707279
;
...
...
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