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
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
MyCard
ygopro-core
Commits
6b647865
Commit
6b647865
authored
Nov 02, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
74903b7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
field.cpp
field.cpp
+2
-2
No files found.
field.cpp
View file @
6b647865
...
@@ -199,7 +199,7 @@ void field::add_card(uint8 playerid, card* pcard, uint8 location, uint8 sequence
...
@@ -199,7 +199,7 @@ void field::add_card(uint8 playerid, card* pcard, uint8 location, uint8 sequence
case
LOCATION_EXTRA
:
case
LOCATION_EXTRA
:
player
[
playerid
].
list_extra
.
push_back
(
pcard
);
player
[
playerid
].
list_extra
.
push_back
(
pcard
);
pcard
->
current
.
sequence
=
player
[
playerid
].
list_extra
.
size
()
-
1
;
pcard
->
current
.
sequence
=
player
[
playerid
].
list_extra
.
size
()
-
1
;
if
((
pcard
->
operation_param
>>
24
)
&
POS_FACEUP
)
if
((
pcard
->
data
.
type
&
TYPE_PENDULUM
)
&&
((
pcard
->
operation_param
>>
24
)
&
POS_FACEUP
)
)
++
player
[
playerid
].
extra_p_count
;
++
player
[
playerid
].
extra_p_count
;
break
;
break
;
}
}
...
@@ -244,7 +244,7 @@ void field::remove_card(card* pcard) {
...
@@ -244,7 +244,7 @@ void field::remove_card(card* pcard) {
case
LOCATION_EXTRA
:
case
LOCATION_EXTRA
:
player
[
playerid
].
list_extra
.
erase
(
player
[
playerid
].
list_extra
.
begin
()
+
pcard
->
current
.
sequence
);
player
[
playerid
].
list_extra
.
erase
(
player
[
playerid
].
list_extra
.
begin
()
+
pcard
->
current
.
sequence
);
reset_sequence
(
playerid
,
LOCATION_EXTRA
);
reset_sequence
(
playerid
,
LOCATION_EXTRA
);
if
(
pcard
->
current
.
position
&
POS_FACEUP
)
if
(
(
pcard
->
data
.
type
&
TYPE_PENDULUM
)
&&
(
pcard
->
current
.
position
&
POS_FACEUP
)
)
--
player
[
playerid
].
extra_p_count
;
--
player
[
playerid
].
extra_p_count
;
break
;
break
;
}
}
...
...
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