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
aadf5a01
Commit
aadf5a01
authored
Dec 31, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixtp
parent
80b99317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gframe/single_duel.cpp
gframe/single_duel.cpp
+4
-4
No files found.
gframe/single_duel.cpp
View file @
aadf5a01
...
@@ -457,8 +457,8 @@ void SingleDuel::StartDuel(DuelPlayer* dp) {
...
@@ -457,8 +457,8 @@ void SingleDuel::StartDuel(DuelPlayer* dp) {
players
[
0
]
->
state
=
CTOS_HAND_RESULT
;
players
[
0
]
->
state
=
CTOS_HAND_RESULT
;
players
[
1
]
->
state
=
CTOS_HAND_RESULT
;
players
[
1
]
->
state
=
CTOS_HAND_RESULT
;
//2pick
//2pick
pick_deck
[
0
]
=
0
;
pick_deck
[
0
]
=
NULL
;
pick_deck
[
1
]
=
0
;
pick_deck
[
1
]
=
NULL
;
}
}
void
SingleDuel
::
HandResult
(
DuelPlayer
*
dp
,
unsigned
char
res
)
{
void
SingleDuel
::
HandResult
(
DuelPlayer
*
dp
,
unsigned
char
res
)
{
if
(
res
>
3
)
if
(
res
>
3
)
...
@@ -520,7 +520,7 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
...
@@ -520,7 +520,7 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
SwapPickDeck
();
SwapPickDeck
();
swapped
=
true
;
swapped
=
true
;
}
}
if
(
pick_deck
[
0
]
&&
pick_deck
[
1
]
)
{
if
(
pick_deck
[
0
]
!=
NULL
&&
pick_deck
[
1
]
!=
NULL
)
{
pdeck
[
0
]
=
pick_deck
[
0
];
pdeck
[
0
]
=
pick_deck
[
0
];
pdeck
[
1
]
=
pick_deck
[
1
];
pdeck
[
1
]
=
pick_deck
[
1
];
}
}
...
@@ -1967,7 +1967,7 @@ void SingleDuel::SingleTimer(evutil_socket_t fd, short events, void* arg) {
...
@@ -1967,7 +1967,7 @@ void SingleDuel::SingleTimer(evutil_socket_t fd, short events, void* arg) {
}
}
}
}
void
SingleDuel
::
SwapPickDeck
()
{
void
SingleDuel
::
SwapPickDeck
()
{
if
(
pick_deck
[
0
]
&&
pick_deck
[
0
]
)
{
if
(
pick_deck
[
0
]
!=
NULL
&&
pick_deck
[
1
]
!=
NULL
)
{
Deck
d
=
pick_deck
[
0
];
Deck
d
=
pick_deck
[
0
];
pick_deck
[
0
]
=
pick_deck
[
1
];
pick_deck
[
0
]
=
pick_deck
[
1
];
pick_deck
[
1
]
=
d
;
pick_deck
[
1
]
=
d
;
...
...
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