Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
List
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
nanahira
ygopro
Commits
8537eec0
Commit
8537eec0
authored
Sep 06, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test card
parent
c45c7020
Pipeline
#5327
passed with stages
in 3 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
gframe/single_duel.cpp
gframe/single_duel.cpp
+5
-4
No files found.
gframe/single_duel.cpp
View file @
8537eec0
...
...
@@ -2225,14 +2225,15 @@ void SingleDuel::SingleTimer(evutil_socket_t fd, short events, void* arg) {
}
#ifdef YGOPRO_SERVER_MODE
void
SingleDuel
::
TestCard
(
int
code
)
{
time_t
seed
=
time
(
0
);
mtrandom
rnd
;
rnd
.
reset
(
seed
);
std
::
random_device
rd
;
unsigned
int
seed
=
rd
();
mt19937
rnd
(
seed
);
unsigned
int
duel_seed
=
rnd
.
rand
();
set_script_reader
((
script_reader
)
DataManager
::
ScriptReaderEx
);
set_card_reader
((
card_reader
)
DataManager
::
CardReader
);
set_message_handler
((
message_handler
)
SingleDuel
::
MessageHandler
);
rnd
.
reset
(
seed
);
unsigned
long
tduel
=
create_duel
(
rnd
.
rand
()
);
unsigned
long
tduel
=
create_duel
(
duel_seed
);
preload_script
(
tduel
,
"./script/special.lua"
,
0
);
preload_script
(
tduel
,
"./script/init.lua"
,
0
);
set_player_info
(
tduel
,
0
,
8000
,
5
,
1
);
...
...
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