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
0488f0ba
Commit
0488f0ba
authored
Apr 02, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix duel_rule
parent
cde001da
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
gframe/game.cpp
gframe/game.cpp
+1
-1
gframe/game.h
gframe/game.h
+1
-1
gframe/gframe.cpp
gframe/gframe.cpp
+2
-2
gframe/single_duel.cpp
gframe/single_duel.cpp
+3
-3
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+3
-3
No files found.
gframe/game.cpp
View file @
0488f0ba
...
@@ -30,7 +30,7 @@ unsigned short aServerPort;
...
@@ -30,7 +30,7 @@ unsigned short aServerPort;
unsigned
int
lflist
;
unsigned
int
lflist
;
unsigned
char
rule
;
unsigned
char
rule
;
unsigned
char
mode
;
unsigned
char
mode
;
bool
enable_priority
;
unsigned
char
duel_rule
;
bool
no_check_deck
;
bool
no_check_deck
;
bool
no_shuffle_deck
;
bool
no_shuffle_deck
;
unsigned
int
start_lp
;
unsigned
int
start_lp
;
...
...
gframe/game.h
View file @
0488f0ba
...
@@ -419,7 +419,7 @@ extern unsigned short aServerPort;
...
@@ -419,7 +419,7 @@ extern unsigned short aServerPort;
extern
unsigned
int
lflist
;
extern
unsigned
int
lflist
;
extern
unsigned
char
rule
;
extern
unsigned
char
rule
;
extern
unsigned
char
mode
;
extern
unsigned
char
mode
;
extern
bool
enable_priority
;
extern
unsigned
char
duel_rule
;
extern
bool
no_check_deck
;
extern
bool
no_check_deck
;
extern
bool
no_shuffle_deck
;
extern
bool
no_shuffle_deck
;
extern
unsigned
int
start_lp
;
extern
unsigned
int
start_lp
;
...
...
gframe/gframe.cpp
View file @
0488f0ba
...
@@ -63,9 +63,9 @@ int main(int argc, char* argv[]) {
...
@@ -63,9 +63,9 @@ int main(int argc, char* argv[]) {
ygo
::
rule
=
atoi
(
argv
[
3
]);
ygo
::
rule
=
atoi
(
argv
[
3
]);
ygo
::
mode
=
atoi
(
argv
[
4
]);
ygo
::
mode
=
atoi
(
argv
[
4
]);
if
(
argv
[
5
][
0
]
==
'T'
)
if
(
argv
[
5
][
0
]
==
'T'
)
ygo
::
enable_priority
=
true
;
ygo
::
duel_rule
=
2
;
else
else
ygo
::
enable_priority
=
false
;
ygo
::
duel_rule
=
3
;
if
(
argv
[
6
][
0
]
==
'T'
)
if
(
argv
[
6
][
0
]
==
'T'
)
ygo
::
no_check_deck
=
true
;
ygo
::
no_check_deck
=
true
;
else
else
...
...
gframe/single_duel.cpp
View file @
0488f0ba
...
@@ -12,7 +12,7 @@ namespace ygo {
...
@@ -12,7 +12,7 @@ namespace ygo {
extern
unsigned
int
lflist
;
extern
unsigned
int
lflist
;
extern
unsigned
char
rule
;
extern
unsigned
char
rule
;
extern
unsigned
char
mode
;
extern
unsigned
char
mode
;
extern
bool
enable_priority
;
extern
unsigned
char
duel_rule
;
extern
bool
no_check_deck
;
extern
bool
no_check_deck
;
extern
bool
no_shuffle_deck
;
extern
bool
no_shuffle_deck
;
extern
unsigned
int
start_lp
;
extern
unsigned
int
start_lp
;
...
@@ -84,7 +84,7 @@ void SingleDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
...
@@ -84,7 +84,7 @@ void SingleDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
mode
=
1
;
host_info
.
mode
=
1
;
host_info
.
no_check_deck
=
false
;
host_info
.
no_check_deck
=
false
;
host_info
.
no_shuffle_deck
=
false
;
host_info
.
no_shuffle_deck
=
false
;
host_info
.
enable_priority
=
false
;
host_info
.
duel_rule
=
3
;
host_info
.
rule
=
0
;
host_info
.
rule
=
0
;
host_info
.
time_limit
=
180
;
host_info
.
time_limit
=
180
;
host_info
.
replay_mode
=
0
;
host_info
.
replay_mode
=
0
;
...
@@ -96,7 +96,7 @@ void SingleDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
...
@@ -96,7 +96,7 @@ void SingleDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
mode
=
ygo
::
mode
;
host_info
.
mode
=
ygo
::
mode
;
host_info
.
no_check_deck
=
ygo
::
no_check_deck
;
host_info
.
no_check_deck
=
ygo
::
no_check_deck
;
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
enable_priority
=
ygo
::
enable_priority
;
host_info
.
duel_rule
=
ygo
::
duel_rule
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
time_limit
=
ygo
::
time_limit
;
host_info
.
time_limit
=
ygo
::
time_limit
;
host_info
.
replay_mode
=
ygo
::
replay_mode
;
host_info
.
replay_mode
=
ygo
::
replay_mode
;
...
...
gframe/tag_duel.cpp
View file @
0488f0ba
...
@@ -12,7 +12,7 @@ namespace ygo {
...
@@ -12,7 +12,7 @@ namespace ygo {
extern
unsigned
int
lflist
;
extern
unsigned
int
lflist
;
extern
unsigned
char
rule
;
extern
unsigned
char
rule
;
extern
unsigned
char
mode
;
extern
unsigned
char
mode
;
extern
bool
enable_priority
;
extern
bool
duel_rule
;
extern
bool
no_check_deck
;
extern
bool
no_check_deck
;
extern
bool
no_shuffle_deck
;
extern
bool
no_shuffle_deck
;
extern
unsigned
int
start_lp
;
extern
unsigned
int
start_lp
;
...
@@ -65,7 +65,7 @@ void TagDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
...
@@ -65,7 +65,7 @@ void TagDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
mode
=
3
;
host_info
.
mode
=
3
;
host_info
.
no_check_deck
=
false
;
host_info
.
no_check_deck
=
false
;
host_info
.
no_shuffle_deck
=
false
;
host_info
.
no_shuffle_deck
=
false
;
host_info
.
enable_priority
=
false
;
host_info
.
duel_rule
=
3
;
host_info
.
rule
=
0
;
host_info
.
rule
=
0
;
host_info
.
time_limit
=
180
;
host_info
.
time_limit
=
180
;
host_info
.
replay_mode
=
0
;
host_info
.
replay_mode
=
0
;
...
@@ -77,7 +77,7 @@ void TagDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
...
@@ -77,7 +77,7 @@ void TagDuel::JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {
host_info
.
mode
=
ygo
::
mode
;
host_info
.
mode
=
ygo
::
mode
;
host_info
.
no_check_deck
=
ygo
::
no_check_deck
;
host_info
.
no_check_deck
=
ygo
::
no_check_deck
;
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
no_shuffle_deck
=
ygo
::
no_shuffle_deck
;
host_info
.
enable_priority
=
ygo
::
enable_priority
;
host_info
.
duel_rule
=
ygo
::
duel_rule
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
rule
=
ygo
::
rule
;
host_info
.
time_limit
=
ygo
::
time_limit
;
host_info
.
time_limit
=
ygo
::
time_limit
;
host_info
.
replay_mode
=
ygo
::
replay_mode
;
host_info
.
replay_mode
=
ygo
::
replay_mode
;
...
...
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