Commit 77cea9dd authored by mercury233's avatar mercury233

test

parent fe0246a7
...@@ -76,6 +76,14 @@ public: ...@@ -76,6 +76,14 @@ public:
if(dp) if(dp)
bufferevent_write(dp->bev, net_server_write, last_sent); bufferevent_write(dp->bev, net_server_write, last_sent);
} }
#ifdef YGOPRO_SERVER_MODE
static void ReSendToPlayers(DuelPlayer* dp1, DuelPlayer* dp2) {
if(dp1)
bufferevent_write(dp1->bev, net_server_write, last_sent);
if(dp2)
bufferevent_write(dp2->bev, net_server_write, last_sent);
}
#endif //YGOPRO_SERVER_MODE
}; };
} }
......
This diff is collapsed.
...@@ -50,8 +50,9 @@ protected: ...@@ -50,8 +50,9 @@ protected:
unsigned char last_response; unsigned char last_response;
std::set<DuelPlayer*> observers; std::set<DuelPlayer*> observers;
#ifdef YGOPRO_SERVER_MODE #ifdef YGOPRO_SERVER_MODE
std::set<DuelPlayer*> recorders; DuelPlayer* cache_recorder;
#endif //YGOPRO_SERVER_MODE DuelPlayer* replay_recorder;
#endif
Replay last_replay; Replay last_replay;
bool match_mode; bool match_mode;
int match_kill; int match_kill;
......
This diff is collapsed.
...@@ -47,8 +47,9 @@ protected: ...@@ -47,8 +47,9 @@ protected:
DuelPlayer* cur_player[2]; DuelPlayer* cur_player[2];
std::set<DuelPlayer*> observers; std::set<DuelPlayer*> observers;
#ifdef YGOPRO_SERVER_MODE #ifdef YGOPRO_SERVER_MODE
std::set<DuelPlayer*> recorders; DuelPlayer* cache_recorder;
#endif //YGOPRO_SERVER_MODE DuelPlayer* replay_recorder;
#endif
bool ready[4]; bool ready[4];
Deck pdeck[4]; Deck pdeck[4];
unsigned char hand_result[2]; unsigned char hand_result[2];
......
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