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
7655b48f
Commit
7655b48f
authored
Dec 05, 2011
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
84b26ce9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
gframe/message.cpp
gframe/message.cpp
+1
-1
gframe/replay.cpp
gframe/replay.cpp
+10
-2
script/c29071332.lua
script/c29071332.lua
+3
-1
script/c49597193.lua
script/c49597193.lua
+1
-0
No files found.
gframe/message.cpp
View file @
7655b48f
...
...
@@ -2559,7 +2559,7 @@ bool Game::SolveMessage(void* pd, char* msg, int len) {
mainGame
->
WaitFrameSignal
(
30
);
myswprintf
(
textBuffer
,
L"[%ls](%ls,%d)成为对象"
,
mainGame
->
dataManager
.
GetName
(
pcard
->
code
),
DataManager
::
FormatLocation
(
l
),
s
);
mainGame
->
lstLog
->
addItem
(
textBuffer
);
mainGame
->
logParam
.
push_back
(
0
);
mainGame
->
logParam
.
push_back
(
pcard
->
code
);
pcard
->
is_highlighting
=
false
;
}
return
true
;
...
...
gframe/replay.cpp
View file @
7655b48f
...
...
@@ -100,9 +100,13 @@ void Replay::SaveReplay(const wchar_t* name) {
bool
Replay
::
OpenReplay
(
const
wchar_t
*
name
)
{
wchar_t
fname
[
64
];
myswprintf
(
fname
,
L"./replay/%ls"
,
name
);
char
fname2
[
64
];
#ifdef WIN32
fp
=
_wfopen
(
fname
,
L"rb"
);
#else
char
fname2
[
256
];
DataManager
::
EncodeUTF8
(
fname
,
fname2
);
fp
=
fopen
(
fname2
,
"rb"
);
#endif
if
(
!
fp
)
return
false
;
fseek
(
fp
,
0
,
SEEK_END
);
...
...
@@ -127,9 +131,13 @@ bool Replay::OpenReplay(const wchar_t* name) {
bool
Replay
::
CheckReplay
(
const
wchar_t
*
name
)
{
wchar_t
fname
[
64
];
myswprintf
(
fname
,
L"./replay/%ls"
,
name
);
char
fname2
[
64
];
#ifdef WIN32
fp
=
_wfopen
(
fname
,
L"rb"
);
#else
char
fname2
[
256
];
DataManager
::
EncodeUTF8
(
fname
,
fname2
);
fp
=
fopen
(
fname2
,
"rb"
);
#endif
if
(
!
fp
)
return
false
;
fread
(
&
pheader
,
sizeof
(
pheader
),
1
,
fp
);
...
...
script/c29071332.lua
View file @
7655b48f
...
...
@@ -98,6 +98,8 @@ function c29071332.damop(e,tp,eg,ep,ev,re,r,rp)
local
des
=
eg
:
GetFirst
()
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
if
des
:
IsRelateToEffect
(
e
)
then
Duel
.
Damage
(
p
,
des
:
GetAttack
(),
REASON_EFFECT
)
local
dam
=
des
:
GetAttack
()
if
dam
<
0
then
dam
=
0
end
Duel
.
Damage
(
p
,
dam
,
REASON_EFFECT
)
end
end
script/c49597193.lua
View file @
7655b48f
...
...
@@ -46,6 +46,7 @@ function c49597193.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
m
=
0
if
a
==
e
:
GetHandler
()
then
m
=
d
:
GetAttack
()
else
m
=
a
:
GetAttack
()
end
if
m
<
0
then
m
=
0
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
m
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
m
)
...
...
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