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
YGOPRO-520DIY
ygopro
Commits
a1619691
Commit
a1619691
authored
Jun 10, 2012
by
Soar Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup warnings under gcc
parent
88b80643
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+2
-2
ocgcore/libgroup.cpp
ocgcore/libgroup.cpp
+1
-1
ocgcore/operations.cpp
ocgcore/operations.cpp
+2
-2
ocgcore/processor.cpp
ocgcore/processor.cpp
+1
-1
No files found.
ocgcore/libduel.cpp
View file @
a1619691
...
...
@@ -910,7 +910,7 @@ int32 scriptlib::duel_discard_hand(lua_State *L) {
lua_pushinteger
(
L
,
0
);
return
1
;
}
pduel
->
game_field
->
add_process
(
PROCESSOR_DISCARD_HAND_S
,
0
,
0
,
(
group
*
)
reason
,
playerid
,
min
+
(
max
<<
16
));
pduel
->
game_field
->
add_process
(
PROCESSOR_DISCARD_HAND_S
,
0
,
0
,
(
group
*
)
(
size_t
)
reason
,
playerid
,
min
+
(
max
<<
16
));
return
lua_yield
(
L
,
0
);
}
int32
scriptlib
::
duel_disable_shuffle_check
(
lua_State
*
L
)
{
...
...
@@ -2716,7 +2716,7 @@ int32 scriptlib::duel_check_chain_uniqueness(lua_State *L) {
card
::
effect_relation
er
;
field
::
chain_array
::
iterator
cait
;
for
(
cait
=
pduel
->
game_field
->
core
.
current_chain
.
begin
();
cait
!=
pduel
->
game_field
->
core
.
current_chain
.
end
();
++
cait
)
er
.
insert
((
effect
*
)(
cait
->
triggering_effect
->
handler
->
get_code
()));
er
.
insert
((
effect
*
)(
size_t
)(
cait
->
triggering_effect
->
handler
->
get_code
()));
if
(
er
.
size
()
==
pduel
->
game_field
->
core
.
current_chain
.
size
())
lua_pushboolean
(
L
,
1
);
else
...
...
ocgcore/libgroup.cpp
View file @
a1619691
...
...
@@ -456,7 +456,7 @@ int32 scriptlib::group_get_class_count(lua_State *L) {
card
::
effect_relation
er
;
field
::
card_set
::
iterator
cit
=
pgroup
->
container
.
begin
();
for
(;
cit
!=
pgroup
->
container
.
end
();
++
cit
)
{
er
.
insert
((
effect
*
)
pduel
->
lua
->
get_operation_value
(
*
cit
,
2
,
extraargs
));
er
.
insert
((
effect
*
)
(
size_t
)
pduel
->
lua
->
get_operation_value
(
*
cit
,
2
,
extraargs
));
}
lua_pushinteger
(
L
,
er
.
size
());
return
1
;
...
...
ocgcore/operations.cpp
View file @
a1619691
...
...
@@ -100,10 +100,10 @@ void field::change_target_param(uint8 chaincount, int32 param) {
core
.
current_chain
[
chaincount
-
1
].
target_param
=
param
;
}
void
field
::
remove_counter
(
uint32
reason
,
card
*
pcard
,
uint32
rplayer
,
uint32
s
,
uint32
o
,
uint32
countertype
,
uint32
count
)
{
add_process
(
PROCESSOR_REMOVE_COUNTER
,
0
,
(
effect
*
)
reason
,
(
group
*
)
pcard
,
(
rplayer
<<
16
)
+
(
s
<<
8
)
+
o
,
countertype
+
(
count
<<
16
));
add_process
(
PROCESSOR_REMOVE_COUNTER
,
0
,
(
effect
*
)
(
size_t
)
reason
,
(
group
*
)
pcard
,
(
rplayer
<<
16
)
+
(
s
<<
8
)
+
o
,
countertype
+
(
count
<<
16
));
}
void
field
::
remove_overlay_card
(
uint32
reason
,
card
*
pcard
,
uint32
rplayer
,
uint32
s
,
uint32
o
,
uint16
min
,
uint16
max
)
{
add_process
(
PROCESSOR_REMOVEOL_S
,
0
,
(
effect
*
)
reason
,
(
group
*
)
pcard
,
(
rplayer
<<
16
)
+
(
s
<<
8
)
+
o
,
(
max
<<
16
)
+
min
);
add_process
(
PROCESSOR_REMOVEOL_S
,
0
,
(
effect
*
)
(
size_t
)
reason
,
(
group
*
)
pcard
,
(
rplayer
<<
16
)
+
(
s
<<
8
)
+
o
,
(
max
<<
16
)
+
min
);
}
void
field
::
get_control
(
effect
*
reason_effect
,
uint32
reason_player
,
card
*
pcard
,
uint32
playerid
,
uint32
reset_phase
,
uint32
reset_count
)
{
add_process
(
PROCESSOR_GET_CONTROL
,
0
,
reason_effect
,
(
group
*
)
pcard
,
0
,
(
reason_player
<<
24
)
+
(
playerid
<<
16
)
+
(
reset_phase
<<
8
)
+
reset_count
);
...
...
ocgcore/processor.cpp
View file @
a1619691
...
...
@@ -4026,7 +4026,7 @@ int32 field::solve_chain(uint16 step, uint32 skip_new) {
return
FALSE
;
}
}
core
.
units
.
begin
()
->
peffect
=
(
effect
*
)
cait
->
triggering_effect
->
operation
;
core
.
units
.
begin
()
->
peffect
=
(
effect
*
)
(
size_t
)
cait
->
triggering_effect
->
operation
;
if
(
cait
->
replace_op
)
cait
->
triggering_effect
->
operation
=
cait
->
replace_op
;
if
(
cait
->
triggering_effect
->
operation
)
{
...
...
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