Skip to content

Commit

Permalink
チャットの同期処理
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailJP committed Apr 12, 2013
1 parent 581e85d commit 9c1c8db
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions mjcore/gameloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "result.h"
#include "ruletbl.h"
#include "remote.h"
#include "chat.h"

/* 半荘の進行 */
EndType doTableTurn(GameTable* const gameStat) {
Expand Down Expand Up @@ -71,11 +72,14 @@ bool doTableRound(GameTable* const gameStat, int& OrigTurn, int& OrigHonba) {
o << _T("局番号 [") << gameStat->GameRound << _T("] を開始しました。");
info(o.str().c_str());
}
/* TODO: チャットの同期
if (getGameMode(GameEnv) == GAMEMODE_CLIENT) {
//sockput "8\n", SOCK_CHAT+0 // チャットを同期
}
*/
/* チャットの同期 */
if (EnvTable::Instantiate()->GameMode == EnvTable::Client)
mihajong_socket::puts(SOCK_CHAT,
#if defined(_WIN32)
_T("8\r\n"));
#else
_T("8\n"));
#endif
/* ウォッチモードの時は視点を親に移す */
gameStat->CurrentPlayer.Active = -1;
if (EnvTable::Instantiate()->WatchModeFlag)
Expand Down

0 comments on commit 9c1c8db

Please sign in to comment.