Commit 30dcb665 authored by nanahira's avatar nanahira

fix

parent edb30d51
...@@ -1736,7 +1736,7 @@ void SingleDuel::GetResponse(DuelPlayer* dp, void* pdata, unsigned int len) { ...@@ -1736,7 +1736,7 @@ void SingleDuel::GetResponse(DuelPlayer* dp, void* pdata, unsigned int len) {
event_del(etimer); event_del(etimer);
} }
#ifdef YGOPRO_SERVER_MODE #ifdef YGOPRO_SERVER_MODE
if(len >= 4 && time_limit[dp->type] < host_info.time_limit) { if(host_info.time_limit && len >= 4 && time_limit[dp->type] < host_info.time_limit) {
int resp = *(int*)pdata; int resp = *(int*)pdata;
int rest = resp & 0xffff; int rest = resp & 0xffff;
if((curMsg == MSG_SELECT_IDLECMD && rest < 6) if((curMsg == MSG_SELECT_IDLECMD && rest < 6)
......
...@@ -1806,7 +1806,7 @@ void TagDuel::GetResponse(DuelPlayer* dp, void* pdata, unsigned int len) { ...@@ -1806,7 +1806,7 @@ void TagDuel::GetResponse(DuelPlayer* dp, void* pdata, unsigned int len) {
} }
#ifdef YGOPRO_SERVER_MODE #ifdef YGOPRO_SERVER_MODE
int resp_type = dp->type < 2 ? 0 : 1; int resp_type = dp->type < 2 ? 0 : 1;
if(len >= 4 && time_limit[resp_type] < host_info.time_limit) { if(host_info.time_limit && len >= 4 && time_limit[resp_type] < host_info.time_limit) {
int resp = *(int*)pdata; int resp = *(int*)pdata;
int rest = resp & 0xffff; int rest = resp & 0xffff;
if((curMsg == MSG_SELECT_IDLECMD && rest < 6) if((curMsg == MSG_SELECT_IDLECMD && rest < 6)
......
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