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
REIKAI
ygopro
Commits
b91f4976
Commit
b91f4976
authored
Feb 01, 2018
by
edo9300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed deck count errors and MSG_ROCK_PAPER_SCISSORS in tag duel
parent
630c7265
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
gframe/duelclient.cpp
gframe/duelclient.cpp
+22
-3
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+1
-1
No files found.
gframe/duelclient.cpp
View file @
b91f4976
...
...
@@ -257,6 +257,25 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
}
case
ERRMSG_DECKERROR
:
{
mainGame
->
gMutex
.
Lock
();
int
mainmin
=
40
,
mainmax
=
60
,
extramax
=
15
,
sidemax
=
15
;
if
(
mainGame
->
cbDeckSelect2
->
isVisible
())
{
if
(
mainGame
->
dInfo
.
extraval
&
0x1
)
{
mainmin
=
40
;
mainmax
=
60
;
extramax
=
10
;
sidemax
=
0
;
}
else
{
mainmin
=
100
;
mainmax
=
100
;
extramax
=
30
;
sidemax
=
30
;
}
}
else
if
(
mainGame
->
dInfo
.
extraval
&
0x1
)
{
mainmin
=
20
;
mainmax
=
30
;
extramax
=
10
;
sidemax
=
0
;
}
unsigned
int
code
=
pkt
->
code
&
0xFFFFFFF
;
int
flag
=
pkt
->
code
>>
28
;
wchar_t
msgbuf
[
256
];
...
...
@@ -283,18 +302,18 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
break
;
}
case
DECKERROR_MAINCOUNT
:
{
myswprintf
(
msgbuf
,
dataManager
.
GetSysString
(
1417
),
code
);
myswprintf
(
msgbuf
,
dataManager
.
GetSysString
(
1417
),
mainmin
,
mainmax
,
code
);
break
;
}
case
DECKERROR_EXTRACOUNT
:
{
if
(
code
>
0
)
myswprintf
(
msgbuf
,
dataManager
.
GetSysString
(
1418
),
code
);
myswprintf
(
msgbuf
,
dataManager
.
GetSysString
(
1418
),
extramax
,
code
);
else
myswprintf
(
msgbuf
,
dataManager
.
GetSysString
(
1420
));
break
;
}
case
DECKERROR_SIDECOUNT
:
{
myswprintf
(
msgbuf
,
dataManager
.
GetSysString
(
1419
),
code
);
myswprintf
(
msgbuf
,
dataManager
.
GetSysString
(
1419
),
sidemax
,
code
);
break
;
}
case
DECKERROR_FORBTYPE
:
{
...
...
gframe/tag_duel.cpp
View file @
b91f4976
...
...
@@ -1441,7 +1441,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
case
MSG_ROCK_PAPER_SCISSORS
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
WaitforResponse
(
player
);
NetServer
::
SendBufferToPlayer
(
players
[
player
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
cur_player
[
player
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
return
1
;
}
case
MSG_HAND_RES
:
{
...
...
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