Commit 9b11c2c1 authored by nanahira's avatar nanahira

infinite time

parent feae91c5
...@@ -735,8 +735,9 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) { ...@@ -735,8 +735,9 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
case STOC_TIME_LIMIT: { case STOC_TIME_LIMIT: {
STOC_TimeLimit* pkt = (STOC_TimeLimit*)pdata; STOC_TimeLimit* pkt = (STOC_TimeLimit*)pdata;
int lplayer = mainGame->LocalPlayer(pkt->player); int lplayer = mainGame->LocalPlayer(pkt->player);
if(lplayer == 0) //if(lplayer == 0)
DuelClient::SendPacketToServer(CTOS_TIME_CONFIRM); // DuelClient::SendPacketToServer(CTOS_TIME_CONFIRM);
if(lplayer == 1)
mainGame->dInfo.time_player = lplayer; mainGame->dInfo.time_player = lplayer;
mainGame->dInfo.time_left[lplayer] = pkt->left_time; mainGame->dInfo.time_left[lplayer] = pkt->left_time;
mainGame->RefreshTimeDisplay(); mainGame->RefreshTimeDisplay();
...@@ -3889,6 +3890,7 @@ void DuelClient::SendResponse() { ...@@ -3889,6 +3890,7 @@ void DuelClient::SendResponse() {
mainGame->singleSignal.Set(); mainGame->singleSignal.Set();
} else { } else {
mainGame->dInfo.time_player = 2; mainGame->dInfo.time_player = 2;
SendPacketToServer(CTOS_TIME_CONFIRM);
SendBufferToServer(CTOS_RESPONSE, response_buf, response_len); SendBufferToServer(CTOS_RESPONSE, response_buf, response_len);
} }
} }
......
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