Commit bedbbd0c authored by nanahira's avatar nanahira

Revert "infinite time"

This reverts commit 9b11c2c1.
parent e8e4b0cc
...@@ -765,9 +765,8 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) { ...@@ -765,9 +765,8 @@ 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();
...@@ -3926,7 +3925,6 @@ void DuelClient::SendResponse() { ...@@ -3926,7 +3925,6 @@ 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