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
5908aabd
Commit
5908aabd
authored
May 11, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into develop
parents
589641ea
fa2aa908
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
gframe/client_field.cpp
gframe/client_field.cpp
+6
-5
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-1
No files found.
gframe/client_field.cpp
View file @
5908aabd
...
@@ -1075,21 +1075,22 @@ void ClientField::GetCardLocation(ClientCard* pcard, irr::core::vector3df* t, ir
...
@@ -1075,21 +1075,22 @@ void ClientField::GetCardLocation(ClientCard* pcard, irr::core::vector3df* t, ir
break
;
break
;
}
}
case
LOCATION_OVERLAY
:
{
case
LOCATION_OVERLAY
:
{
if
(
pcard
->
overlayTarget
->
location
!=
LOCATION_MZONE
)
{
if
(
!
(
pcard
->
overlayTarget
->
location
&
LOCATION_ONFIELD
)
)
{
return
;
return
;
}
}
int
oseq
=
pcard
->
overlayTarget
->
sequence
;
int
oseq
=
pcard
->
overlayTarget
->
sequence
;
int
mseq
=
(
sequence
<
MAX_LAYER_COUNT
)
?
sequence
:
(
MAX_LAYER_COUNT
-
1
);
int
mseq
=
(
sequence
<
MAX_LAYER_COUNT
)
?
sequence
:
(
MAX_LAYER_COUNT
-
1
);
auto
vFieldZone
=
(
pcard
->
overlayTarget
->
location
==
LOCATION_MZONE
)
?
matManager
.
vFieldMzone
[
pcard
->
overlayTarget
->
controler
][
oseq
]
:
matManager
.
vFieldSzone
[
pcard
->
overlayTarget
->
controler
][
oseq
][
rule
];
if
(
pcard
->
overlayTarget
->
controler
==
0
)
{
if
(
pcard
->
overlayTarget
->
controler
==
0
)
{
t
->
X
=
(
matManager
.
vFieldMzone
[
0
][
oseq
][
0
].
Pos
.
X
+
matManager
.
vFieldMzone
[
0
][
oseq
]
[
1
].
Pos
.
X
)
/
2
-
0.12
f
+
0.06
f
*
mseq
;
t
->
X
=
(
vFieldZone
[
0
].
Pos
.
X
+
vFieldZone
[
1
].
Pos
.
X
)
/
2
-
0.12
f
+
0.06
f
*
mseq
;
t
->
Y
=
(
matManager
.
vFieldMzone
[
0
][
oseq
][
0
].
Pos
.
Y
+
matManager
.
vFieldMzone
[
0
][
oseq
]
[
2
].
Pos
.
Y
)
/
2
+
0.05
f
;
t
->
Y
=
(
vFieldZone
[
0
].
Pos
.
Y
+
vFieldZone
[
2
].
Pos
.
Y
)
/
2
+
0.05
f
;
t
->
Z
=
overlay_buttom
+
mseq
*
material_height
;
t
->
Z
=
overlay_buttom
+
mseq
*
material_height
;
r
->
X
=
0.0
f
;
r
->
X
=
0.0
f
;
r
->
Y
=
0.0
f
;
r
->
Y
=
0.0
f
;
r
->
Z
=
0.0
f
;
r
->
Z
=
0.0
f
;
}
else
{
}
else
{
t
->
X
=
(
matManager
.
vFieldMzone
[
1
][
oseq
][
0
].
Pos
.
X
+
matManager
.
vFieldMzone
[
1
][
oseq
]
[
1
].
Pos
.
X
)
/
2
+
0.12
f
-
0.06
f
*
mseq
;
t
->
X
=
(
vFieldZone
[
0
].
Pos
.
X
+
vFieldZone
[
1
].
Pos
.
X
)
/
2
+
0.12
f
-
0.06
f
*
mseq
;
t
->
Y
=
(
matManager
.
vFieldMzone
[
1
][
oseq
][
0
].
Pos
.
Y
+
matManager
.
vFieldMzone
[
1
][
oseq
]
[
2
].
Pos
.
Y
)
/
2
-
0.05
f
;
t
->
Y
=
(
vFieldZone
[
0
].
Pos
.
Y
+
vFieldZone
[
2
].
Pos
.
Y
)
/
2
-
0.05
f
;
t
->
Z
=
overlay_buttom
+
mseq
*
material_height
;
t
->
Z
=
overlay_buttom
+
mseq
*
material_height
;
r
->
X
=
0.0
f
;
r
->
X
=
0.0
f
;
r
->
Y
=
0.0
f
;
r
->
Y
=
0.0
f
;
...
...
gframe/duelclient.cpp
View file @
5908aabd
...
@@ -2902,7 +2902,7 @@ int DuelClient::ClientAnalyze(unsigned char* msg, unsigned int len) {
...
@@ -2902,7 +2902,7 @@ int DuelClient::ClientAnalyze(unsigned char* msg, unsigned int len) {
pcard
->
overlayTarget
=
olcard
;
pcard
->
overlayTarget
=
olcard
;
pcard
->
location
=
LOCATION_OVERLAY
;
pcard
->
location
=
LOCATION_OVERLAY
;
pcard
->
sequence
=
(
unsigned
char
)(
olcard
->
overlayed
.
size
()
-
1
);
pcard
->
sequence
=
(
unsigned
char
)(
olcard
->
overlayed
.
size
()
-
1
);
if
(
olcard
->
location
==
LOCATION_MZONE
)
{
if
(
olcard
->
location
&
LOCATION_ONFIELD
)
{
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
mainGame
->
dField
.
MoveCard
(
pcard
,
10
);
mainGame
->
dField
.
MoveCard
(
pcard
,
10
);
if
(
pl
==
0x2
)
if
(
pl
==
0x2
)
...
...
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