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
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
Commits
04a53184
Commit
04a53184
authored
Dec 27, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "update memset"
This reverts commit
11466ad4
.
parent
6c0ed50c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
28 deletions
+27
-28
gframe/game.cpp
gframe/game.cpp
+2
-3
gframe/game.h
gframe/game.h
+25
-25
No files found.
gframe/game.cpp
View file @
04a53184
...
@@ -49,9 +49,8 @@ bool Game::Initialize() {
...
@@ -49,9 +49,8 @@ bool Game::Initialize() {
is_building
=
false
;
is_building
=
false
;
menuHandler
.
prev_operation
=
0
;
menuHandler
.
prev_operation
=
0
;
menuHandler
.
prev_sel
=
-
1
;
menuHandler
.
prev_sel
=
-
1
;
for
(
auto
i
:
chatTiming
)
{
memset
(
&
dInfo
,
0
,
sizeof
(
DuelInfo
));
i
=
0
;
memset
(
chatTiming
,
0
,
sizeof
(
chatTiming
));
}
deckManager
.
LoadLFList
();
deckManager
.
LoadLFList
();
driver
=
device
->
getVideoDriver
();
driver
=
device
->
getVideoDriver
();
driver
->
setTextureCreationFlag
(
irr
::
video
::
ETCF_CREATE_MIP_MAPS
,
false
);
driver
->
setTextureCreationFlag
(
irr
::
video
::
ETCF_CREATE_MIP_MAPS
,
false
);
...
...
gframe/game.h
View file @
04a53184
...
@@ -66,31 +66,31 @@ struct Config {
...
@@ -66,31 +66,31 @@ struct Config {
};
};
struct
DuelInfo
{
struct
DuelInfo
{
bool
isStarted
{
false
}
;
bool
isStarted
;
bool
isFinished
{
false
}
;
bool
isFinished
;
bool
isReplay
{
false
}
;
bool
isReplay
;
bool
isReplaySkiping
{
false
}
;
bool
isReplaySkiping
;
bool
isFirst
{
false
}
;
bool
isFirst
;
bool
isTag
{
false
}
;
bool
isTag
;
bool
isSingleMode
{
false
}
;
bool
isSingleMode
;
bool
is_shuffling
{
false
}
;
bool
is_shuffling
;
bool
tag_player
[
2
]
{
false
}
;
bool
tag_player
[
2
];
bool
isReplaySwapped
{
false
}
;
int
lp
[
2
]
;
int
lp
[
2
]{
0
}
;
int
start_lp
;
int
start_lp
{
0
}
;
int
duel_rule
;
int
duel_rule
{
0
}
;
int
turn
;
int
turn
{
0
}
;
short
curMsg
;
short
curMsg
{
0
}
;
wchar_t
hostname
[
20
]
;
wchar_t
hostname
[
20
]{
0
}
;
wchar_t
clientname
[
20
]
;
wchar_t
clientname
[
20
]{
0
}
;
wchar_t
hostname_tag
[
20
]
;
wchar_t
hostname_tag
[
20
]{
0
}
;
wchar_t
clientname_tag
[
20
]
;
wchar_t
clientname_tag
[
20
]{
0
}
;
wchar_t
strLP
[
2
][
16
]
;
wchar_t
strLP
[
2
][
16
]{
0
}
;
wchar_t
*
vic_string
;
wchar_t
*
vic_string
{
0
}
;
unsigned
char
player_type
;
unsigned
char
player_type
{
0
}
;
unsigned
char
time_player
;
unsigned
char
time_player
{
0
}
;
unsigned
short
time_limit
;
unsigned
short
time_l
imit
{
0
}
;
unsigned
short
time_l
eft
[
2
]
;
unsigned
short
time_left
[
2
]{
0
}
;
bool
isReplaySwapped
;
};
};
struct
BotInfo
{
struct
BotInfo
{
...
...
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