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
68038630
Commit
68038630
authored
Aug 09, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5f9ceffb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
gframe/gframe.cpp
gframe/gframe.cpp
+22
-22
gframe/single_duel.cpp
gframe/single_duel.cpp
+1
-1
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+1
-1
No files found.
gframe/gframe.cpp
View file @
68038630
...
...
@@ -59,32 +59,32 @@ int main(int argc, char* argv[]) {
ygo
::
Game
_game
;
#ifdef YGOPRO_SERVER_MODE
enable_log
=
1
;
ygo
::
aServerPort
=
7911
;
ygo
::
aServerPort
=
atoi
(
argv
[
1
]);
ygo
::
lflist
=
atoi
(
argv
[
2
]);
ygo
::
start_hand
=
0
;
if
(
argc
>
2
)
{
ygo
::
rule
=
atoi
(
argv
[
3
]);
ygo
::
mode
=
atoi
(
argv
[
4
]);
if
(
ygo
::
mode
>
2
)
ygo
::
aServerPort
=
7911
;
ygo
::
aServerPort
=
atoi
(
argv
[
1
]);
ygo
::
lflist
=
atoi
(
argv
[
2
]);
ygo
::
start_hand
=
0
;
if
(
argc
>
2
)
{
ygo
::
rule
=
atoi
(
argv
[
3
]);
ygo
::
mode
=
atoi
(
argv
[
4
]);
if
(
ygo
::
mode
>
2
)
ygo
::
mode
=
0
;
if
(
argv
[
5
][
0
]
==
'T'
)
ygo
::
duel_rule
=
DEFAULT_DUEL_RULE
-
1
;
if
(
argv
[
5
][
0
]
==
'T'
)
ygo
::
duel_rule
=
DEFAULT_DUEL_RULE
-
1
;
else
ygo
::
duel_rule
=
DEFAULT_DUEL_RULE
;
if
(
argv
[
6
][
0
]
==
'T'
)
ygo
::
no_check_deck
=
true
;
ygo
::
duel_rule
=
DEFAULT_DUEL_RULE
;
if
(
argv
[
6
][
0
]
==
'T'
)
ygo
::
no_check_deck
=
true
;
else
ygo
::
no_check_deck
=
false
;
if
(
argv
[
7
][
0
]
==
'T'
)
ygo
::
no_shuffle_deck
=
true
;
ygo
::
no_check_deck
=
false
;
if
(
argv
[
7
][
0
]
==
'T'
)
ygo
::
no_shuffle_deck
=
true
;
else
ygo
::
no_shuffle_deck
=
false
;
ygo
::
start_lp
=
atoi
(
argv
[
8
]);
ygo
::
start_hand
=
atoi
(
argv
[
9
]);
ygo
::
draw_count
=
atoi
(
argv
[
10
]);
ygo
::
time_limit
=
atoi
(
argv
[
11
]);
ygo
::
replay_mode
=
atoi
(
argv
[
12
]);
ygo
::
no_shuffle_deck
=
false
;
ygo
::
start_lp
=
atoi
(
argv
[
8
]);
ygo
::
start_hand
=
atoi
(
argv
[
9
]);
ygo
::
draw_count
=
atoi
(
argv
[
10
]);
ygo
::
time_limit
=
atoi
(
argv
[
11
]);
ygo
::
replay_mode
=
atoi
(
argv
[
12
]);
}
ygo
::
mainGame
=
&
_game
;
ygo
::
mainGame
->
MainServerLoop
(
ygo
::
mode
,
ygo
::
lflist
);
...
...
gframe/single_duel.cpp
View file @
68038630
...
...
@@ -84,7 +84,7 @@ void SingleDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
mode
=
1
;
host_info
.
no_check_deck
=
false
;
host_info
.
no_shuffle_deck
=
false
;
host_info
.
duel_rule
=
3
;
host_info
.
duel_rule
=
DEFAULT_DUEL_RULE
;
host_info
.
rule
=
0
;
host_info
.
time_limit
=
180
;
host_info
.
replay_mode
=
0
;
...
...
gframe/tag_duel.cpp
View file @
68038630
...
...
@@ -65,7 +65,7 @@ void TagDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
mode
=
3
;
host_info
.
no_check_deck
=
false
;
host_info
.
no_shuffle_deck
=
false
;
host_info
.
duel_rule
=
3
;
host_info
.
duel_rule
=
DEFAULT_DUEL_RULE
;
host_info
.
rule
=
0
;
host_info
.
time_limit
=
180
;
host_info
.
replay_mode
=
0
;
...
...
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