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
ea275fa6
Commit
ea275fa6
authored
Jun 05, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change returns.svalue to uint16
parent
a0e388c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
field.h
field.h
+1
-1
operations.cpp
operations.cpp
+2
-2
playerop.cpp
playerop.cpp
+1
-1
No files found.
field.h
View file @
ea275fa6
...
@@ -161,7 +161,7 @@ constexpr int SIZE_IVALUE = SIZE_RETURN_VALUE / 4;
...
@@ -161,7 +161,7 @@ constexpr int SIZE_IVALUE = SIZE_RETURN_VALUE / 4;
constexpr
int
SIZE_LVALUE
=
SIZE_RETURN_VALUE
/
8
;
constexpr
int
SIZE_LVALUE
=
SIZE_RETURN_VALUE
/
8
;
union
return_value
{
union
return_value
{
int8
bvalue
[
SIZE_RETURN_VALUE
];
int8
bvalue
[
SIZE_RETURN_VALUE
];
int16
svalue
[
SIZE_SVALUE
];
u
int16
svalue
[
SIZE_SVALUE
];
int32
ivalue
[
SIZE_IVALUE
];
int32
ivalue
[
SIZE_IVALUE
];
int64
lvalue
[
SIZE_LVALUE
];
int64
lvalue
[
SIZE_LVALUE
];
};
};
...
...
operations.cpp
View file @
ea275fa6
...
@@ -710,7 +710,7 @@ int32 field::remove_counter(uint16 step, uint32 reason, card* pcard, uint8 rplay
...
@@ -710,7 +710,7 @@ int32 field::remove_counter(uint16 step, uint32 reason, card* pcard, uint8 rplay
core
.
select_effects
.
clear
();
core
.
select_effects
.
clear
();
if
((
pcard
&&
pcard
->
get_counter
(
countertype
)
>=
count
)
||
(
!
pcard
&&
get_field_counter
(
rplayer
,
s
,
o
,
countertype
)))
{
if
((
pcard
&&
pcard
->
get_counter
(
countertype
)
>=
count
)
||
(
!
pcard
&&
get_field_counter
(
rplayer
,
s
,
o
,
countertype
)))
{
core
.
select_options
.
push_back
(
10
);
core
.
select_options
.
push_back
(
10
);
core
.
select_effects
.
push_back
(
0
);
core
.
select_effects
.
push_back
(
nullptr
);
}
}
auto
pr
=
effects
.
continuous_effect
.
equal_range
(
EFFECT_RCOUNTER_REPLACE
+
countertype
);
auto
pr
=
effects
.
continuous_effect
.
equal_range
(
EFFECT_RCOUNTER_REPLACE
+
countertype
);
tevent
e
;
tevent
e
;
...
@@ -733,7 +733,7 @@ int32 field::remove_counter(uint16 step, uint32 reason, card* pcard, uint8 rplay
...
@@ -733,7 +733,7 @@ int32 field::remove_counter(uint16 step, uint32 reason, card* pcard, uint8 rplay
return
TRUE
;
return
TRUE
;
if
(
core
.
select_options
.
size
()
==
1
)
if
(
core
.
select_options
.
size
()
==
1
)
returns
.
ivalue
[
0
]
=
0
;
returns
.
ivalue
[
0
]
=
0
;
else
if
(
core
.
select_effects
[
0
]
==
0
&&
core
.
select_effects
.
size
()
==
2
)
else
if
(
core
.
select_effects
[
0
]
==
nullptr
&&
core
.
select_effects
.
size
()
==
2
)
add_process
(
PROCESSOR_SELECT_EFFECTYN
,
0
,
0
,
(
group
*
)
core
.
select_effects
[
1
]
->
handler
,
rplayer
,
220
);
add_process
(
PROCESSOR_SELECT_EFFECTYN
,
0
,
0
,
(
group
*
)
core
.
select_effects
[
1
]
->
handler
,
rplayer
,
220
);
else
else
add_process
(
PROCESSOR_SELECT_OPTION
,
0
,
0
,
0
,
rplayer
,
0
);
add_process
(
PROCESSOR_SELECT_OPTION
,
0
,
0
,
0
,
rplayer
,
0
);
...
...
playerop.cpp
View file @
ea275fa6
...
@@ -606,7 +606,7 @@ int32 field::select_counter(uint16 step, uint8 playerid, uint16 countertype, uin
...
@@ -606,7 +606,7 @@ int32 field::select_counter(uint16 step, uint8 playerid, uint16 countertype, uin
}
}
return
FALSE
;
return
FALSE
;
}
else
{
}
else
{
uint16
ct
=
0
;
int32
ct
=
0
;
for
(
int32
i
=
0
;
i
<
(
int32
)
core
.
select_cards
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
(
int32
)
core
.
select_cards
.
size
();
++
i
)
{
if
(
core
.
select_cards
[
i
]
->
get_counter
(
countertype
)
<
returns
.
svalue
[
i
])
{
if
(
core
.
select_cards
[
i
]
->
get_counter
(
countertype
)
<
returns
.
svalue
[
i
])
{
pduel
->
write_buffer8
(
MSG_RETRY
);
pduel
->
write_buffer8
(
MSG_RETRY
);
...
...
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