Rename SpectacleThread to SpectatorThread

This commit is contained in:
oldmud0 2016-02-27 10:20:52 -06:00
parent 1f80ae3e0e
commit 2720012566
2 changed files with 5 additions and 5 deletions

View file

@ -1567,7 +1567,7 @@ void MainForm::ReceivePackets(IAsyncResult^ asyncResult)
si->IP_EP = ep; si->IP_EP = ep;
si->FRAME = 0; si->FRAME = 0;
if(SpectacleThread != nullptr && SpectacleThread->IsAlive && AllowWatch){ if(SpectatorThread != nullptr && SpectatorThread->IsAlive && AllowWatch){
// 既にはじめてる // 既にはじめてる
send = gcnew array<BYTE>(14); send = gcnew array<BYTE>(14);
send[0] = PH_RES_WATCH; send[0] = PH_RES_WATCH;
@ -2233,8 +2233,8 @@ void MainForm::RunGame(Object^ obj)
AllowWatch = false; AllowWatch = false;
InputFrame = 0; InputFrame = 0;
SpectacleThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::RunSpectator)); SpectatorThread = gcnew Thread(gcnew ThreadStart(this, &MainForm::RunSpectator));
SpectacleThread->Start(); SpectatorThread->Start();
} }
// 対戦中通知 // 対戦中通知
@ -2993,7 +2993,7 @@ void MainForm::RunGame(Object^ obj)
if(allow_spectator){ if(allow_spectator){
AllowWatch = false; AllowWatch = false;
SpectacleThread->Join(); SpectatorThread->Join();
} }
if(AfterCloseUDP){ if(AfterCloseUDP){

View file

@ -990,7 +990,7 @@ private: System::Windows::Forms::ContextMenu^ contextMenuStrip2;
UINT32 FRAME; UINT32 FRAME;
}; };
static Thread^ SpectacleThread; static Thread^ SpectatorThread;
static Generic::List<SpectatorInfo^>^ SpectatorList; static Generic::List<SpectatorInfo^>^ SpectatorList;
static bool AllowWatch; // スレッド制御 static bool AllowWatch; // スレッド制御
static UINT WaitingWatch; // パケット待ち 1:開始待ち 2:データ待ち static UINT WaitingWatch; // パケット待ち 1:開始待ち 2:データ待ち