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
22e33165
Commit
22e33165
authored
Aug 11, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7cebc086
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gframe/gframe.cpp
gframe/gframe.cpp
+8
-4
gframe/netserver.cpp
gframe/netserver.cpp
+1
-1
No files found.
gframe/gframe.cpp
View file @
22e33165
...
@@ -73,11 +73,15 @@ int main(int argc, char* argv[]) {
...
@@ -73,11 +73,15 @@ int main(int argc, char* argv[]) {
ygo
::
game_info
.
time_limit
=
180
;
ygo
::
game_info
.
time_limit
=
180
;
if
(
argc
>
1
)
{
if
(
argc
>
1
)
{
ygo
::
aServerPort
=
atoi
(
argv
[
1
]);
ygo
::
aServerPort
=
atoi
(
argv
[
1
]);
ygo
::
game_info
.
lflist
=
atoi
(
argv
[
2
]);
int
lflist
=
atoi
(
argv
[
2
]);
if
(
lflist
<
0
)
lflist
=
999
;
ygo
::
game_info
.
lflist
=
lflist
;
ygo
::
game_info
.
rule
=
atoi
(
argv
[
3
]);
ygo
::
game_info
.
rule
=
atoi
(
argv
[
3
]);
ygo
::
game_info
.
mode
=
atoi
(
argv
[
4
]);
int
mode
=
atoi
(
argv
[
4
]);
if
(
ygo
::
game_info
.
mode
>
2
)
if
(
mode
>
2
)
ygo
::
game_info
.
mode
=
0
;
mode
=
0
;
ygo
::
game_info
.
mode
=
mode
;
if
(
argv
[
5
][
0
]
==
'T'
)
if
(
argv
[
5
][
0
]
==
'T'
)
ygo
::
game_info
.
duel_rule
=
DEFAULT_DUEL_RULE
-
1
;
ygo
::
game_info
.
duel_rule
=
DEFAULT_DUEL_RULE
-
1
;
else
else
...
...
gframe/netserver.cpp
View file @
22e33165
...
@@ -42,7 +42,7 @@ void NetServer::InitDuel()
...
@@ -42,7 +42,7 @@ void NetServer::InitDuel()
pkt
->
info
.
rule
=
game_info
.
rule
;
pkt
->
info
.
rule
=
game_info
.
rule
;
pkt
->
info
.
time_limit
=
game_info
.
time_limit
;
pkt
->
info
.
time_limit
=
game_info
.
time_limit
;
if
(
game_info
.
lflist
<
0
)
if
(
game_info
.
lflist
==
999
)
pkt
->
info
.
lflist
=
0
;
pkt
->
info
.
lflist
=
0
;
else
if
(
game_info
.
lflist
>=
deckManager
.
_lfList
.
size
())
else
if
(
game_info
.
lflist
>=
deckManager
.
_lfList
.
size
())
pkt
->
info
.
lflist
=
deckManager
.
_lfList
[
0
].
hash
;
pkt
->
info
.
lflist
=
deckManager
.
_lfList
[
0
].
hash
;
...
...
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