Commit d72141ef authored by kikyoulzg's avatar kikyoulzg

audio

parent 079d9ac7
...@@ -8,9 +8,7 @@ ...@@ -8,9 +8,7 @@
#include "game.h" #include "game.h"
#include "replay.h" #include "replay.h"
#include "replay_mode.h" #include "replay_mode.h"
namespace ygo { namespace ygo {
unsigned DuelClient::connect_state = 0; unsigned DuelClient::connect_state = 0;
unsigned char DuelClient::response_buf[64]; unsigned char DuelClient::response_buf[64];
unsigned char DuelClient::response_len = 0; unsigned char DuelClient::response_len = 0;
...@@ -442,7 +440,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) { ...@@ -442,7 +440,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
mainGame->dInfo.player_type = selftype; mainGame->dInfo.player_type = selftype;
break; break;
} }
case STOC_DUEL_START: { case STOC_DUEL_START:{ puts ("duel start");
mainGame->HideElement(mainGame->wHostPrepare); mainGame->HideElement(mainGame->wHostPrepare);
mainGame->WaitFrameSignal(11); mainGame->WaitFrameSignal(11);
mainGame->gMutex.Lock(); mainGame->gMutex.Lock();
...@@ -507,8 +505,10 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) { ...@@ -507,8 +505,10 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
mainGame->gMutex.Unlock(); mainGame->gMutex.Unlock();
match_kill = 0; match_kill = 0;
break; break;
} }
case STOC_DUEL_END: { case STOC_DUEL_END: {
puts("duel end");
mainGame->gMutex.Lock(); mainGame->gMutex.Lock();
if(mainGame->dInfo.player_type < 7) if(mainGame->dInfo.player_type < 7)
mainGame->btnLeaveGame->setVisible(false); mainGame->btnLeaveGame->setVisible(false);
......
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