Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
c227b4cd
Commit
c227b4cd
authored
May 06, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync ocgcore
parent
16335d52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
Classes/ocgcore/common.h
Classes/ocgcore/common.h
+1
-0
Classes/ocgcore/duel.cpp
Classes/ocgcore/duel.cpp
+3
-0
Classes/ocgcore/field.cpp
Classes/ocgcore/field.cpp
+1
-0
No files found.
Classes/ocgcore/common.h
View file @
c227b4cd
...
...
@@ -9,6 +9,7 @@
#define COMMON_H_
#include <stdint.h>
#include <assert.h>
typedef
unsigned
long
long
uint64
;
typedef
unsigned
int
uint32
;
typedef
unsigned
short
uint16
;
...
...
Classes/ocgcore/duel.cpp
View file @
c227b4cd
...
...
@@ -27,6 +27,9 @@ duel::duel() {
game_field
=
new
field
(
this
);
game_field
->
temp_card
=
new_card
(
0
);
message_buffer
.
reserve
(
SIZE_MESSAGE_BUFFER
);
#ifdef _WIN32
_set_error_mode
(
_OUT_TO_MSGBOX
);
#endif // _WIN32
}
duel
::~
duel
()
{
for
(
auto
&
pcard
:
cards
)
...
...
Classes/ocgcore/field.cpp
View file @
c227b4cd
...
...
@@ -1091,6 +1091,7 @@ void field::swap_deck_and_grave(uint8 playerid) {
}
player
[
playerid
].
list_extra
.
insert
(
player
[
playerid
].
list_extra
.
end
()
-
player
[
playerid
].
extra_p_count
,
ex
.
begin
(),
ex
.
end
());
reset_sequence
(
playerid
,
LOCATION_GRAVE
);
reset_sequence
(
playerid
,
LOCATION_DECK
);
reset_sequence
(
playerid
,
LOCATION_EXTRA
);
pduel
->
write_buffer8
(
MSG_SWAP_GRAVE_DECK
);
pduel
->
write_buffer8
(
playerid
);
...
...
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