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
0c3b76c5
Commit
0c3b76c5
authored
Dec 03, 2011
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
c2b1f418
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
24 deletions
+13
-24
gframe/message.cpp
gframe/message.cpp
+8
-11
ocgcore/processor.cpp
ocgcore/processor.cpp
+5
-13
No files found.
gframe/message.cpp
View file @
0c3b76c5
...
...
@@ -930,10 +930,9 @@ void Game::Analyze(void* pd, char* engbuf) {
break
;
}
case
MSG_MISSED_EFFECT
:
{
count
=
NetManager
::
ReadInt8
(
pbuf
)
;
player
=
pbuf
[
0
]
;
pbuf
+=
8
;
// mainGame->SendGameMessage(0, offset, pbuf - offset);
// mainGame->SendGameMessage(1, offset, pbuf - offset);
mainGame
->
SendGameMessage
(
player
,
offset
,
pbuf
-
offset
);
break
;
}
case
MSG_TOSS_COIN
:
{
...
...
@@ -2860,12 +2859,11 @@ bool Game::SolveMessage(void* pd, char* msg, int len) {
return
true
;
}
case
MSG_MISSED_EFFECT
:
{
int
count
=
NetManager
::
ReadInt8
(
pbuf
);
int
code
,
desc
;
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
code
=
NetManager
::
ReadInt32
(
pbuf
);
desc
=
NetManager
::
ReadInt32
(
pbuf
);
}
NetManager
::
ReadInt32
(
pbuf
);
int
code
=
NetManager
::
ReadInt32
(
pbuf
);
myswprintf
(
textBuffer
,
L"[%ls]错过时点"
,
mainGame
->
dataManager
.
GetName
(
code
));
mainGame
->
lstLog
->
addItem
(
textBuffer
);
mainGame
->
logParam
.
push_back
(
code
);
return
true
;
}
case
MSG_TOSS_COIN
:
{
...
...
@@ -3550,9 +3548,8 @@ bool Game::AnalyzeReplay(void* pd, char* engbuf) {
break
;
}
case
MSG_MISSED_EFFECT
:
{
count
=
NetManager
::
ReadInt8
(
pbuf
);
pbuf
+=
8
;
//
SolveMessage(pd, offset, pbuf - offset);
SolveMessage
(
pd
,
offset
,
pbuf
-
offset
);
break
;
}
case
MSG_TOSS_COIN
:
{
...
...
ocgcore/processor.cpp
View file @
0c3b76c5
...
...
@@ -3756,25 +3756,17 @@ int32 field::solve_chain(uint16 step, uint32 skip_new) {
return
TRUE
;
}
int32
field
::
break_effect
()
{
chain_list
::
iterator
chit
,
rm
;
chain_list
missed
;
core
.
hint_timing
[
0
]
=
0
;
core
.
hint_timing
[
1
]
=
0
;
for
(
chit
=
core
.
new_ochain
.
begin
();
chit
!=
core
.
new_ochain
.
end
();)
{
rm
=
chit
++
;
for
(
auto
chit
=
core
.
new_ochain
.
begin
();
chit
!=
core
.
new_ochain
.
end
();)
{
auto
rm
=
chit
++
;
if
(
!
(
rm
->
triggering_effect
->
flag
&
EFFECT_FLAG_DELAY
))
{
missed
.
push_back
(
*
rm
);
pduel
->
write_buffer8
(
MSG_MISSED_EFFECT
);
pduel
->
write_buffer32
(
rm
->
triggering_effect
->
handler
->
get_info_location
());
pduel
->
write_buffer32
(
rm
->
triggering_effect
->
handler
->
data
.
code
);
core
.
new_ochain
.
erase
(
rm
);
}
}
if
(
missed
.
size
())
{
pduel
->
write_buffer8
(
MSG_MISSED_EFFECT
);
pduel
->
write_buffer8
(
missed
.
size
());
for
(
chit
=
missed
.
begin
();
chit
!=
missed
.
end
();
++
chit
)
{
pduel
->
write_buffer32
(
chit
->
triggering_effect
->
handler
->
data
.
code
);
pduel
->
write_buffer32
(
chit
->
triggering_effect
->
description
);
}
}
core
.
used_event
.
splice
(
core
.
used_event
.
end
(),
core
.
instant_event
);
adjust_instant
();
return
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