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
REIKAI
ygopro
Commits
c65e90c3
Commit
c65e90c3
authored
Sep 13, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro
parents
0ca05198
296ee7ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
gframe/duelclient.cpp
gframe/duelclient.cpp
+14
-4
gframe/gframe.cpp
gframe/gframe.cpp
+4
-1
No files found.
gframe/duelclient.cpp
View file @
c65e90c3
...
...
@@ -1643,7 +1643,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
int
c
,
l
,
s
,
ss
;
unsigned
int
code
;
bool
panelmode
=
false
;
int
handcount
=
0
;
int
hand_count
[
2
]
=
{
mainGame
->
dField
.
hand
[
0
].
size
(),
mainGame
->
dField
.
hand
[
1
].
size
()
};
int
select_count_in_hand
[
2
]
=
{
0
,
0
};
bool
select_ready
=
mainGame
->
dField
.
select_min
==
0
;
mainGame
->
dField
.
select_ready
=
select_ready
;
ClientCard
*
pcard
;
...
...
@@ -1669,9 +1670,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
->
is_selected
=
false
;
if
(
l
&
0xf1
)
panelmode
=
true
;
if
(
l
&
LOCATION_HAND
)
{
handcount
++
;
if
(
handcount
>=
10
)
if
((
l
&
LOCATION_HAND
)
&&
hand_count
[
c
]
>=
10
)
{
if
(
++
select_count_in_hand
[
c
]
>
1
)
panelmode
=
true
;
}
}
...
...
@@ -1712,6 +1712,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
int
c
,
l
,
s
,
ss
;
unsigned
int
code
;
bool
panelmode
=
false
;
int
hand_count
[
2
]
=
{
mainGame
->
dField
.
hand
[
0
].
size
(),
mainGame
->
dField
.
hand
[
1
].
size
()
};
int
select_count_in_hand
[
2
]
=
{
0
,
0
};
mainGame
->
dField
.
select_ready
=
false
;
ClientCard
*
pcard
;
for
(
int
i
=
0
;
i
<
count1
;
++
i
)
{
...
...
@@ -1736,6 +1738,10 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
->
is_selected
=
false
;
if
(
l
&
0xf1
)
panelmode
=
true
;
if
((
l
&
LOCATION_HAND
)
&&
hand_count
[
c
]
>=
10
)
{
if
(
++
select_count_in_hand
[
c
]
>
1
)
panelmode
=
true
;
}
}
int
count2
=
BufferIO
::
ReadInt8
(
pbuf
);
for
(
int
i
=
count1
;
i
<
count1
+
count2
;
++
i
)
{
...
...
@@ -1760,6 +1766,10 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
->
is_selected
=
true
;
if
(
l
&
0xf1
)
panelmode
=
true
;
if
((
l
&
LOCATION_HAND
)
&&
hand_count
[
c
]
>=
10
)
{
if
(
++
select_count_in_hand
[
c
]
>
1
)
panelmode
=
true
;
}
}
std
::
sort
(
mainGame
->
dField
.
selectable_cards
.
begin
(),
mainGame
->
dField
.
selectable_cards
.
end
(),
ClientCard
::
client_card_sort
);
if
(
select_hint
)
...
...
gframe/gframe.cpp
View file @
c65e90c3
...
...
@@ -112,8 +112,11 @@ int main(int argc, char* argv[]) {
}
else
if
(
!
wcscmp
(
wargv
[
i
],
L"-k"
))
{
// Keep on return
exit_on_return
=
false
;
keep_on_return
=
true
;
<<<<<<<
HEAD
}
else
if
(
!
wcscmp
(
wargv
[
i
],
L"--auto-watch"
))
{
// Auto watch mode
auto_watch_mode
=
true
;
=======
>>>>>>>
296
ee7aeae5f923b59c29c3460794e85e825e95c
}
else
if
(
!
wcscmp
(
wargv
[
i
],
L"--deck-category"
))
{
++
i
;
if
(
i
<
wargc
)
{
...
...
@@ -132,7 +135,7 @@ int main(int argc, char* argv[]) {
if
(
i
<
wargc
)
{
open_file
=
true
;
wcscpy
(
open_file_name
,
wargv
[
i
]);
if
(
deckCategorySpecified
)
{
if
(
deckCategorySpecified
&&
wcslen
(
ygo
::
mainGame
->
gameConf
.
lastcategory
)
)
{
swprintf
(
open_file_name_with_category
,
256
,
L"%ls/%ls"
,
ygo
::
mainGame
->
gameConf
.
lastcategory
,
open_file_name
);
}
else
{
wcscpy
(
open_file_name_with_category
,
open_file_name
);
...
...
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