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
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
xiaoye
ygopro-core
Commits
3b873526
Commit
3b873526
authored
Jun 06, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change SIZE_RETURN_VALUE to 512
parent
976ff898
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
common.h
common.h
+1
-1
libgroup.cpp
libgroup.cpp
+2
-2
playerop.cpp
playerop.cpp
+0
-2
No files found.
common.h
View file @
3b873526
...
@@ -31,7 +31,7 @@ typedef signed char int8;
...
@@ -31,7 +31,7 @@ typedef signed char int8;
#define TRUE 1
#define TRUE 1
#define FALSE 0
#define FALSE 0
#define SIZE_MESSAGE_BUFFER 0x2000
#define SIZE_MESSAGE_BUFFER 0x2000
#define SIZE_RETURN_VALUE
128
#define SIZE_RETURN_VALUE
512
#define PROCESSOR_BUFFER_LEN 0x0fffffff
#define PROCESSOR_BUFFER_LEN 0x0fffffff
#define PROCESSOR_FLAG 0xf0000000
#define PROCESSOR_FLAG 0xf0000000
...
...
libgroup.cpp
View file @
3b873526
...
@@ -494,8 +494,8 @@ int32 scriptlib::group_select_with_sum_equal(lua_State *L) {
...
@@ -494,8 +494,8 @@ int32 scriptlib::group_select_with_sum_equal(lua_State *L) {
min
=
0
;
min
=
0
;
if
(
max
<
min
)
if
(
max
<
min
)
max
=
min
;
max
=
min
;
if
(
max
>
127
)
if
(
max
>
UINT8_MAX
)
return
luaL_error
(
L
,
"Parameter
\"
max
\"
exceeded
127
."
);
return
luaL_error
(
L
,
"Parameter
\"
max
\"
exceeded
255
."
);
int32
extraargs
=
lua_gettop
(
L
)
-
6
;
int32
extraargs
=
lua_gettop
(
L
)
-
6
;
pduel
->
game_field
->
core
.
select_cards
.
assign
(
pgroup
->
container
.
begin
(),
pgroup
->
container
.
end
());
pduel
->
game_field
->
core
.
select_cards
.
assign
(
pgroup
->
container
.
begin
(),
pgroup
->
container
.
end
());
for
(
auto
&
pcard
:
pduel
->
game_field
->
core
.
must_select_cards
)
{
for
(
auto
&
pcard
:
pduel
->
game_field
->
core
.
must_select_cards
)
{
...
...
playerop.cpp
View file @
3b873526
...
@@ -244,8 +244,6 @@ int32 field::select_card(uint16 step, uint8 playerid, uint8 cancelable, uint8 mi
...
@@ -244,8 +244,6 @@ int32 field::select_card(uint16 step, uint8 playerid, uint8 cancelable, uint8 mi
std
::
sort
(
core
.
select_cards
.
begin
(),
core
.
select_cards
.
end
(),
card
::
card_operation_sort
);
std
::
sort
(
core
.
select_cards
.
begin
(),
core
.
select_cards
.
end
(),
card
::
card_operation_sort
);
if
(
core
.
select_cards
.
size
()
>
UINT8_MAX
)
if
(
core
.
select_cards
.
size
()
>
UINT8_MAX
)
core
.
select_cards
.
resize
(
UINT8_MAX
);
core
.
select_cards
.
resize
(
UINT8_MAX
);
if
(
max
>
SIZE_RETURN_VALUE
-
1
)
max
=
SIZE_RETURN_VALUE
-
1
;
if
(
max
>
core
.
select_cards
.
size
())
if
(
max
>
core
.
select_cards
.
size
())
max
=
(
uint8
)
core
.
select_cards
.
size
();
max
=
(
uint8
)
core
.
select_cards
.
size
();
if
(
min
>
max
)
if
(
min
>
max
)
...
...
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