Commit 4e0b96ce authored by wind2009's avatar wind2009

change int32 to int32_t

parent 9efbe1a0
...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment