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
7828ff96
Commit
7828ff96
authored
Aug 10, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
09d16cf4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
.gitignore
.gitignore
+1
-0
gframe/premake4.lua
gframe/premake4.lua
+2
-3
gframe/single_duel.cpp
gframe/single_duel.cpp
+6
-4
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+6
-4
No files found.
.gitignore
View file @
7828ff96
...
...
@@ -14,3 +14,4 @@
/gframe/ygopro.aps
ygopro
premake5.exe
premake5
gframe/premake4.lua
View file @
7828ff96
...
...
@@ -3,7 +3,7 @@ include "lzma"
project
"ygopro"
kind
"ConsoleApp"
defines
{
"YGOPRO_SERVER_MODE"
}
defines
{
"YGOPRO_SERVER_MODE"
}
files
{
"gframe.cpp"
,
"config.h"
,
"game.cpp"
,
"game.h"
,
...
...
@@ -12,8 +12,7 @@ project "ygopro"
"replay.cpp"
,
"replay.h"
,
"netserver.cpp"
,
"netserver.h"
,
"single_duel.cpp"
,
"single_duel.h"
,
"tag_duel.cpp"
,
"tag_duel.h"
,
"**.cc"
,
"**.c"
}
"tag_duel.cpp"
,
"tag_duel.h"
}
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"sqlite3"
,
"lua"
,
"event"
}
...
...
gframe/single_duel.cpp
View file @
7828ff96
...
...
@@ -203,10 +203,12 @@ void SingleDuel::LeaveGame(DuelPlayer* dp) {
NetServer
::
StopServer
();
return
;
}
ready
[
host_pos
]
=
false
;
STOC_TypeChange
sctc
;
sctc
.
type
=
0x10
|
host_pos
;
NetServer
::
SendPacketToPlayer
(
players
[
host_pos
],
STOC_TYPE_CHANGE
,
sctc
);
if
(
!
game_started
)
{
ready
[
host_pos
]
=
false
;
STOC_TypeChange
sctc
;
sctc
.
type
=
0x10
|
host_pos
;
NetServer
::
SendPacketToPlayer
(
players
[
host_pos
],
STOC_TYPE_CHANGE
,
sctc
);
}
}
if
(
dp
->
type
==
NETPLAYER_TYPE_OBSERVER
)
{
#else
...
...
gframe/tag_duel.cpp
View file @
7828ff96
...
...
@@ -175,10 +175,12 @@ void TagDuel::LeaveGame(DuelPlayer* dp) {
NetServer
::
StopServer
();
return
;
}
ready
[
host_pos
]
=
false
;
STOC_TypeChange
sctc
;
sctc
.
type
=
0x10
|
host_pos
;
NetServer
::
SendPacketToPlayer
(
players
[
host_pos
],
STOC_TYPE_CHANGE
,
sctc
);
if
(
!
game_started
)
{
ready
[
host_pos
]
=
false
;
STOC_TypeChange
sctc
;
sctc
.
type
=
0x10
|
host_pos
;
NetServer
::
SendPacketToPlayer
(
players
[
host_pos
],
STOC_TYPE_CHANGE
,
sctc
);
}
}
if
(
dp
->
type
==
NETPLAYER_TYPE_OBSERVER
)
{
#else
...
...
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