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
赤子奈落
ygopro
Commits
4e0b96ce
Commit
4e0b96ce
authored
Dec 29, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change int32 to int32_t
parent
9efbe1a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gframe/netserver.cpp
gframe/netserver.cpp
+3
-3
No files found.
gframe/netserver.cpp
View file @
4e0b96ce
...
@@ -58,7 +58,7 @@ void NetServer::InitDuel()
...
@@ -58,7 +58,7 @@ void NetServer::InitDuel()
}
}
bool
NetServer
::
IsCanIncreaseTime
(
unsigned
short
gameMsg
,
void
*
pdata
,
unsigned
int
len
)
{
bool
NetServer
::
IsCanIncreaseTime
(
unsigned
short
gameMsg
,
void
*
pdata
,
unsigned
int
len
)
{
int32
*
ivalue
=
(
int32
*
)
pdata
;
int32
_t
*
ivalue
=
(
int32_t
*
)
pdata
;
switch
(
gameMsg
)
{
switch
(
gameMsg
)
{
case
MSG_RETRY
:
case
MSG_RETRY
:
case
MSG_SELECT_UNSELECT_CARD
:
case
MSG_SELECT_UNSELECT_CARD
:
...
@@ -66,11 +66,11 @@ bool NetServer::IsCanIncreaseTime(unsigned short gameMsg, void *pdata, unsigned
...
@@ -66,11 +66,11 @@ bool NetServer::IsCanIncreaseTime(unsigned short gameMsg, void *pdata, unsigned
case
MSG_SELECT_CHAIN
:
case
MSG_SELECT_CHAIN
:
return
ivalue
[
0
]
!=
-
1
;
return
ivalue
[
0
]
!=
-
1
;
case
MSG_SELECT_IDLECMD
:
{
case
MSG_SELECT_IDLECMD
:
{
int32
idleChoice
=
ivalue
[
0
]
&
0xffff
;
int32
_t
idleChoice
=
ivalue
[
0
]
&
0xffff
;
return
idleChoice
<=
5
;
// no shuffle hand, enter other phases
return
idleChoice
<=
5
;
// no shuffle hand, enter other phases
}
}
case
MSG_SELECT_BATTLECMD
:
{
case
MSG_SELECT_BATTLECMD
:
{
int32
battleChoice
=
ivalue
[
0
]
&
0xffff
;
int32
_t
battleChoice
=
ivalue
[
0
]
&
0xffff
;
return
battleChoice
<=
1
;
// attack only
return
battleChoice
<=
1
;
// attack only
}
}
default:
default:
...
...
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