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
REIKAI
ygopro
Commits
19bb514b
Commit
19bb514b
authored
Nov 04, 2017
by
edo9300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A player should be able to see the hand of its partner
parent
90d446de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+12
-12
No files found.
gframe/tag_duel.cpp
View file @
19bb514b
...
@@ -920,12 +920,12 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
...
@@ -920,12 +920,12 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
int
cs
=
pbuf
[
10
];
int
cs
=
pbuf
[
10
];
int
cp
=
pbuf
[
11
];
int
cp
=
pbuf
[
11
];
pbuf
+=
16
;
pbuf
+=
16
;
NetServer
::
SendBufferToPlayer
(
cur_player
[
cc
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
players
[
cc
*
2
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
cc
*
2
+
1
]);
if
(
!
(
cl
&
(
LOCATION_GRAVE
+
LOCATION_OVERLAY
))
&&
((
cl
&
(
LOCATION_DECK
+
LOCATION_HAND
))
||
(
cp
&
POS_FACEDOWN
)))
if
(
!
(
cl
&
(
LOCATION_GRAVE
+
LOCATION_OVERLAY
))
&&
((
cl
&
(
LOCATION_DECK
+
LOCATION_HAND
))
||
(
cp
&
POS_FACEDOWN
)))
BufferIO
::
WriteInt32
(
pbufw
,
0
);
BufferIO
::
WriteInt32
(
pbufw
,
0
);
for
(
int
i
=
0
;
i
<
4
;
++
i
)
for
(
int
p
=
(
1
-
cc
)
*
2
,
i
=
0
;
i
<
2
;
i
++
,
p
++
)
if
(
players
[
i
]
!=
cur_player
[
cc
])
NetServer
::
SendBufferToPlayer
(
players
[
p
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
players
[
i
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
NetServer
::
ReSendToPlayer
(
*
oit
);
if
(
cl
!=
0
&&
(
cl
&
0x80
)
==
0
&&
(
cl
!=
pl
||
pc
!=
cc
))
if
(
cl
!=
0
&&
(
cl
&
0x80
)
==
0
&&
(
cl
!=
pl
||
pc
!=
cc
))
...
@@ -1179,16 +1179,16 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
...
@@ -1179,16 +1179,16 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
count
=
BufferIO
::
ReadInt8
(
pbuf
);
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbufw
=
pbuf
;
pbufw
=
pbuf
;
pbuf
+=
count
*
4
;
pbuf
+=
count
*
4
;
NetServer
::
SendBufferToPlayer
(
cur_player
[
player
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
players
[
player
*
2
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
player
*
2
+
1
]);
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
if
(
!
(
pbufw
[
3
]
&
0x80
))
if
(
!
(
pbufw
[
3
]
&
0x80
))
BufferIO
::
WriteInt32
(
pbufw
,
0
);
BufferIO
::
WriteInt32
(
pbufw
,
0
);
else
else
pbufw
+=
4
;
pbufw
+=
4
;
}
}
for
(
int
i
=
0
;
i
<
4
;
++
i
)
for
(
int
p
=
(
1
-
player
)
*
2
,
i
=
0
;
i
<
2
;
i
++
,
p
++
)
if
(
players
[
i
]
!=
cur_player
[
player
])
NetServer
::
SendBufferToPlayer
(
players
[
p
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
players
[
i
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
NetServer
::
ReSendToPlayer
(
*
oit
);
break
;
break
;
...
@@ -1448,7 +1448,8 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
...
@@ -1448,7 +1448,8 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
int
hcount
=
BufferIO
::
ReadInt8
(
pbuf
);
int
hcount
=
BufferIO
::
ReadInt8
(
pbuf
);
pbufw
=
pbuf
+
4
;
pbufw
=
pbuf
+
4
;
pbuf
+=
hcount
*
4
+
ecount
*
4
+
4
;
pbuf
+=
hcount
*
4
+
ecount
*
4
+
4
;
NetServer
::
SendBufferToPlayer
(
cur_player
[
player
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
players
[
player
*
2
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
player
*
2
+
1
]);
for
(
int
i
=
0
;
i
<
hcount
;
++
i
)
{
for
(
int
i
=
0
;
i
<
hcount
;
++
i
)
{
if
(
!
(
pbufw
[
3
]
&
0x80
))
if
(
!
(
pbufw
[
3
]
&
0x80
))
BufferIO
::
WriteInt32
(
pbufw
,
0
);
BufferIO
::
WriteInt32
(
pbufw
,
0
);
...
@@ -1461,9 +1462,8 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
...
@@ -1461,9 +1462,8 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
else
else
pbufw
+=
4
;
pbufw
+=
4
;
}
}
for
(
int
i
=
0
;
i
<
4
;
++
i
)
for
(
int
p
=
(
1
-
player
)
*
2
,
i
=
0
;
i
<
2
;
i
++
,
p
++
)
if
(
players
[
i
]
!=
cur_player
[
player
])
NetServer
::
SendBufferToPlayer
(
players
[
p
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
players
[
i
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
NetServer
::
ReSendToPlayer
(
*
oit
);
RefreshExtra
(
player
);
RefreshExtra
(
player
);
...
...
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