Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
9056c01e
Commit
9056c01e
authored
Jun 17, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'server_mc' into server
parents
cb3653d6
2834d8f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+4
-4
No files found.
gframe/tag_duel.cpp
View file @
9056c01e
...
@@ -1907,13 +1907,13 @@ void TagDuel::RequestField(DuelPlayer* dp) {
...
@@ -1907,13 +1907,13 @@ void TagDuel::RequestField(DuelPlayer* dp) {
BufferIO
::
WriteInt16
(
pbuf
,
0
);
BufferIO
::
WriteInt16
(
pbuf
,
0
);
NetServer
::
SendBufferToPlayer
(
dp
,
STOC_GAME_MSG
,
startbuf
,
18
);
NetServer
::
SendBufferToPlayer
(
dp
,
STOC_GAME_MSG
,
startbuf
,
18
);
int
newturn_count
=
1
;
int
newturn_count
=
turn_count
%
4
;
if
(
turn_player
==
1
)
if
(
newturn_count
==
0
)
newturn_count
=
2
;
newturn_count
=
4
;
for
(
int
i
=
0
;
i
<
newturn_count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
newturn_count
;
i
++
)
{
char
turnbuf
[
2
],
*
pbuf_t
=
turnbuf
;
char
turnbuf
[
2
],
*
pbuf_t
=
turnbuf
;
BufferIO
::
WriteInt8
(
pbuf_t
,
MSG_NEW_TURN
);
BufferIO
::
WriteInt8
(
pbuf_t
,
MSG_NEW_TURN
);
BufferIO
::
WriteInt8
(
pbuf_t
,
i
);
BufferIO
::
WriteInt8
(
pbuf_t
,
i
%
2
);
NetServer
::
SendBufferToPlayer
(
dp
,
STOC_GAME_MSG
,
turnbuf
,
2
);
NetServer
::
SendBufferToPlayer
(
dp
,
STOC_GAME_MSG
,
turnbuf
,
2
);
}
}
...
...
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