Commit 95b8cf6b authored by nanahira's avatar nanahira

increase buffer time limit to int16

parent ee335948
...@@ -1011,7 +1011,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -1011,7 +1011,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
} }
switch(mainGame->dInfo.curMsg) { switch(mainGame->dInfo.curMsg) {
case MSG_RESET_TIME: { case MSG_RESET_TIME: {
pbuf += 2; pbuf += 3;
break; break;
} }
case MSG_RETRY: { case MSG_RETRY: {
......
...@@ -588,7 +588,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) { ...@@ -588,7 +588,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
switch (engType) { switch (engType) {
case MSG_RESET_TIME: { case MSG_RESET_TIME: {
player = BufferIO::ReadInt8(pbuf); player = BufferIO::ReadInt8(pbuf);
int time = BufferIO::ReadInt8(pbuf); short time = BufferIO::ReadInt16(pbuf);
if(host_info.time_limit) { if(host_info.time_limit) {
if(time) if(time)
time_limit[player] = time; time_limit[player] = time;
......
...@@ -183,7 +183,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) { ...@@ -183,7 +183,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
mainGame->dInfo.curMsg = BufferIO::ReadUInt8(pbuf); mainGame->dInfo.curMsg = BufferIO::ReadUInt8(pbuf);
switch (mainGame->dInfo.curMsg) { switch (mainGame->dInfo.curMsg) {
case MSG_RESET_TIME: { case MSG_RESET_TIME: {
pbuf += 2; pbuf += 3;
break; break;
} }
case MSG_RETRY: { case MSG_RETRY: {
......
...@@ -552,7 +552,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) { ...@@ -552,7 +552,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
switch (engType) { switch (engType) {
case MSG_RESET_TIME: { case MSG_RESET_TIME: {
player = BufferIO::ReadInt8(pbuf); player = BufferIO::ReadInt8(pbuf);
int time = BufferIO::ReadInt8(pbuf); short time = BufferIO::ReadInt16(pbuf);
if(host_info.time_limit) { if(host_info.time_limit) {
if(time) if(time)
time_limit[player] = time; time_limit[player] = time;
......
Subproject commit b43c3762795b73c51c3bcb684fe789fc7bb07b17 Subproject commit 1eedc8d1b7e4b36f7a78431351238b330b723aad
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