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
nanahira
ygopro
Commits
50e27734
Commit
50e27734
authored
Dec 18, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only one and 3 side
parent
068c1c46
Pipeline
#18655
passed with stages
in 2 minutes and 7 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+3
-3
gframe/game.h
gframe/game.h
+1
-1
No files found.
gframe/deck_manager.cpp
View file @
50e27734
...
...
@@ -113,7 +113,7 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
int
code
=
cit
->
second
.
alias
?
cit
->
second
.
alias
:
cit
->
first
;
ccount
[
code
]
++
;
dc
=
ccount
[
code
];
if
(
dc
>
3
)
if
(
dc
>
1
)
return
(
DECKERROR_CARDCOUNT
<<
28
)
+
cit
->
first
;
auto
it
=
list
->
find
(
code
);
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
...
...
@@ -127,7 +127,7 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
int
code
=
cit
->
second
.
alias
?
cit
->
second
.
alias
:
cit
->
first
;
ccount
[
code
]
++
;
dc
=
ccount
[
code
];
if
(
dc
>
3
)
if
(
dc
>
1
)
return
(
DECKERROR_CARDCOUNT
<<
28
)
+
cit
->
first
;
auto
it
=
list
->
find
(
code
);
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
...
...
@@ -141,7 +141,7 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
int
code
=
cit
->
second
.
alias
?
cit
->
second
.
alias
:
cit
->
first
;
ccount
[
code
]
++
;
dc
=
ccount
[
code
];
if
(
dc
>
3
)
if
(
dc
>
1
)
return
(
DECKERROR_CARDCOUNT
<<
28
)
+
cit
->
first
;
auto
it
=
list
->
find
(
code
);
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
...
...
gframe/game.h
View file @
50e27734
...
...
@@ -903,7 +903,7 @@ extern unsigned int pre_seed[3];
#endif
#ifndef YGOPRO_MAX_SIDE
#define YGOPRO_MAX_SIDE
2
#define YGOPRO_MAX_SIDE
3
#endif
#define CARD_ARTWORK_VERSIONS_OFFSET 10
...
...
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