Commit 736da0ba authored by nanahira's avatar nanahira

remove mod sign

parent be7c74f1
......@@ -32,7 +32,6 @@ int DuelClient::match_kill = 0;
std::vector<HostPacket> DuelClient::hosts;
std::set<unsigned int> DuelClient::remotes;
event* DuelClient::resp_event = 0;
//modded
unsigned int DuelClient::temp_ip = 0;
unsigned short DuelClient::temp_port = 0;
unsigned short DuelClient::temp_ver = 0;
......@@ -51,7 +50,6 @@ bool DuelClient::StartClient(unsigned int ip, unsigned short port, bool create_g
sin.sin_port = htons(port);
client_bev = bufferevent_socket_new(client_base, -1, BEV_OPT_CLOSE_ON_FREE);
bufferevent_setcb(client_bev, ClientRead, NULL, ClientEvent, (void*)create_game);
//modded
temp_ip = ip;
temp_port = port;
......@@ -76,7 +74,6 @@ void DuelClient::ConnectTimeout(evutil_socket_t fd, short events, void* arg) {
if(connect_state == 0x7)
return;
if(!is_closing) {
//modded
temp_ver = 0;
mainGame->btnCreateHost->setEnabled(true);
mainGame->btnJoinHost->setEnabled(true);
......@@ -172,7 +169,6 @@ void DuelClient::ClientEvent(bufferevent *bev, short events, void *ctx) {
bufferevent_disable(bev, EV_READ);
if(!is_closing) {
if(connect_state == 0x1) {
//modded
temp_ver = 0;
mainGame->btnCreateHost->setEnabled(true);
mainGame->btnJoinHost->setEnabled(true);
......@@ -257,7 +253,6 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
STOC_ErrorMsg* pkt = (STOC_ErrorMsg*)pdata;
switch(pkt->msg) {
case ERRMSG_JOINERROR: {
//modded
temp_ver = 0;
mainGame->btnCreateHost->setEnabled(true);
mainGame->btnJoinHost->setEnabled(true);
......@@ -336,7 +331,6 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
mainGame->gMutex.Unlock();
break;
}
//modded
case ERRMSG_VERERROR: {
if (temp_ver) {
temp_ver = 0;
......@@ -430,7 +424,6 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
break;
}
case STOC_JOIN_GAME: {
//modded
temp_ver = 0;
STOC_JoinGame* pkt = (STOC_JoinGame*)pdata;
std::wstring str;
......@@ -1025,7 +1018,6 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->WaitFrameSignal(30);
break;
}
//modded
//playing custom bgm
case HINT_MUSIC: {
char BGMName[1024];
......@@ -1140,7 +1132,6 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->dField.Initial(mainGame->LocalPlayer(1), deckc, extrac);
mainGame->dInfo.turn = 0;
mainGame->dInfo.is_shuffling = false;
//modded - to check swapped
mainGame->dInfo.is_swapped = false;
if(mainGame->dInfo.isReplaySwapped) {
std::swap(mainGame->dInfo.hostname, mainGame->dInfo.clientname);
......@@ -3960,7 +3951,6 @@ void DuelClient::BroadcastReply(evutil_socket_t fd, short events, void * arg) {
/*int ret = */recvfrom(fd, buf, 256, 0, (sockaddr*)&bc_addr, &sz);
unsigned int ipaddr = bc_addr.sin_addr.s_addr;
HostPacket* pHP = (HostPacket*)buf;
//modded
if(!is_closing && pHP->identifier == NETWORK_SERVER_ID && remotes.find(ipaddr) == remotes.end() ) {
mainGame->gMutex.Lock();
remotes.insert(ipaddr);
......
......@@ -33,7 +33,6 @@ private:
static wchar_t event_string[256];
static mtrandom rnd;
public:
//modded
static unsigned int temp_ip;
static unsigned short temp_port;
static unsigned short temp_ver;
......
......@@ -1800,7 +1800,6 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
return true;
break;
}
//modded
case CHECKBOX_ENABLE_SOUND: {
if(!mainGame->chkEnableSound->isChecked())
soundManager.StopSound();
......
......@@ -70,7 +70,6 @@ bool Game::Initialize() {
guiFont = irr::gui::CGUITTFont::createTTFont(env, gameConf.textfont, gameConf.textfontsize);
textFont = guiFont;
smgr = device->getSceneManager();
//modded
device->setWindowCaption(L"KoishiPro");
device->setResizable(true);
if(gameConf.window_maximized)
......@@ -91,7 +90,6 @@ bool Game::Initialize() {
SetWindowsIcon();
//main menu
wchar_t strbuf[256];
//modded
myswprintf(strbuf, L"KoishiPro Version:%X.0%X.%X", PRO_VERSION >> 12, (PRO_VERSION >> 4) & 0xff, PRO_VERSION & 0xf);
wMainMenu = env->addWindow(rect<s32>(370, 200, 650, 415), false, strbuf);
wMainMenu->getCloseButton()->setVisible(false);
......@@ -777,7 +775,6 @@ void Game::MainLoop() {
usleep(20000);
#endif
if(cur_time >= 1000) {
//modded
myswprintf(cap, L"KoishiPro FPS: %d", fps);
device->setWindowCaption(cap);
fps = 0;
......@@ -789,7 +786,6 @@ void Game::MainLoop() {
RefreshTimeDisplay();
}
}
//modded
if (DuelClient::try_needed) {
DuelClient::try_needed = false;
DuelClient::StartClient(DuelClient::temp_ip, DuelClient::temp_port, false);
......@@ -1431,7 +1427,6 @@ void Game::ShowCardInfo(int code, bool resize) {
wcscat(formatBuffer, scaleBuffer);
}
stDataInfo->setText(formatBuffer);
//modded
if ((cd.type & TYPE_LINK) && (cd.level > 5)) {
stDataInfo->setRelativePosition(rect<s32>(15, 60, 296, 98));
stSetName->setRelativePosition(rect<s32>(15, 98, 296 * xScale, 121));
......
......@@ -62,7 +62,6 @@ struct DuelInfo {
bool isTag;
bool isSingleMode;
bool is_shuffling;
//modded - to check swapped
bool is_swapped;
bool tag_player[2];
int lp[2];
......
......@@ -588,7 +588,6 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
NetServer::ReSendToPlayer(*oit);
break;
}
//modded
case 10:
case 11:
case 12:
......
......@@ -79,7 +79,6 @@ extern SoundManager soundManager;
#define BGM_DISADVANTAGE 5
#define BGM_WIN 6
#define BGM_LOSE 7
//modded
#define BGM_CUSTOM 8
}
......
......@@ -537,7 +537,6 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
NetServer::ReSendToPlayer(*oit);
break;
}
//modded
case 11:
case 12:
case 13: {
......
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