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
88f8b73d
Commit
88f8b73d
authored
Jun 14, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/patch-client-sidec' into develop
parents
c8542882
fedacbaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
25 deletions
+20
-25
gframe/client_field.cpp
gframe/client_field.cpp
+17
-22
gframe/client_field.h
gframe/client_field.h
+1
-1
gframe/duelclient.cpp
gframe/duelclient.cpp
+2
-2
No files found.
gframe/client_field.cpp
View file @
88f8b73d
...
...
@@ -119,28 +119,23 @@ void ClientField::Clear() {
tag_surrender
=
false
;
tag_teammate_surrender
=
false
;
}
void
ClientField
::
Initial
(
int
player
,
int
deckc
,
int
extrac
)
{
ClientCard
*
pcard
;
for
(
int
i
=
0
;
i
<
deckc
;
++
i
)
{
pcard
=
new
ClientCard
;
deck
[
player
].
push_back
(
pcard
);
pcard
->
owner
=
player
;
pcard
->
controler
=
player
;
pcard
->
location
=
LOCATION_DECK
;
pcard
->
sequence
=
i
;
pcard
->
position
=
POS_FACEDOWN_DEFENSE
;
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
,
true
);
}
for
(
int
i
=
0
;
i
<
extrac
;
++
i
)
{
pcard
=
new
ClientCard
;
extra
[
player
].
push_back
(
pcard
);
pcard
->
owner
=
player
;
pcard
->
controler
=
player
;
pcard
->
location
=
LOCATION_EXTRA
;
pcard
->
sequence
=
i
;
pcard
->
position
=
POS_FACEDOWN_DEFENSE
;
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
,
true
);
}
void
ClientField
::
Initial
(
int
player
,
int
deckc
,
int
extrac
,
int
sidec
)
{
auto
load_location
=
[
&
](
std
::
vector
<
ClientCard
*>&
container
,
int
count
,
uint8_t
location
)
{
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
ClientCard
*
pcard
=
new
ClientCard
;
container
.
push_back
(
pcard
);
pcard
->
owner
=
player
;
pcard
->
controler
=
player
;
pcard
->
location
=
location
;
pcard
->
sequence
=
i
;
pcard
->
position
=
POS_FACEDOWN_DEFENSE
;
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
,
true
);
}
};
load_location
(
deck
[
player
],
deckc
,
LOCATION_DECK
);
load_location
(
extra
[
player
],
extrac
,
LOCATION_EXTRA
);
load_location
(
remove
[
player
],
sidec
,
LOCATION_REMOVED
);
}
void
ClientField
::
ResetSequence
(
std
::
vector
<
ClientCard
*>&
list
,
bool
reset_height
)
{
unsigned
char
seq
=
0
;
...
...
gframe/client_field.h
View file @
88f8b73d
...
...
@@ -95,7 +95,7 @@ public:
ClientField
();
~
ClientField
();
void
Clear
();
void
Initial
(
int
player
,
int
deckc
,
int
extrac
);
void
Initial
(
int
player
,
int
deckc
,
int
extrac
,
int
sidec
=
0
);
void
ResetSequence
(
std
::
vector
<
ClientCard
*>&
list
,
bool
reset_height
);
ClientCard
*
GetCard
(
int
controler
,
int
location
,
int
sequence
,
int
sub_seq
=
0
);
void
AddCard
(
ClientCard
*
pcard
,
int
controler
,
int
location
,
int
sequence
);
...
...
gframe/duelclient.cpp
View file @
88f8b73d
...
...
@@ -431,11 +431,11 @@ void DuelClient::HandleSTOCPacketLan(unsigned char* data, int len) {
int
deckc
=
BufferIO
::
ReadInt16
(
pdata
);
int
extrac
=
BufferIO
::
ReadInt16
(
pdata
);
int
sidec
=
BufferIO
::
ReadInt16
(
pdata
);
mainGame
->
dField
.
Initial
(
0
,
deckc
,
extrac
);
mainGame
->
dField
.
Initial
(
0
,
deckc
,
extrac
,
sidec
);
deckc
=
BufferIO
::
ReadInt16
(
pdata
);
extrac
=
BufferIO
::
ReadInt16
(
pdata
);
sidec
=
BufferIO
::
ReadInt16
(
pdata
);
mainGame
->
dField
.
Initial
(
1
,
deckc
,
extrac
);
mainGame
->
dField
.
Initial
(
1
,
deckc
,
extrac
,
sidec
);
mainGame
->
gMutex
.
unlock
();
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