Skip to content

Commit

Permalink
Fix GunZ Patch Library (27 patches and counting)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZER0NIS committed Dec 23, 2019
2 parents 4a69c71 + b99ea9f commit 0033186
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
Binary file modified Binaries/Server/MatchServer.exe
Binary file not shown.
Binary file added Binaries/Server/MatchServer.iobj
Binary file not shown.
Binary file added Binaries/Server/MatchServer.ipdb
Binary file not shown.
19 changes: 8 additions & 11 deletions CSCommon/Source/MMatchServer_OnCommand.cpp
Expand Up @@ -643,17 +643,14 @@ bool MMatchServer::OnCommand(MCommand* pCommand)
break;
case MC_MATCH_REGISTERAGENT:
{
char szIP[128];
int nTCPPort, nUDPPort;

if (pCommand->GetParameter(&szIP, 0, MPT_STR, sizeof(szIP) ) == false) break;
if (pCommand->GetParameter(&nTCPPort, 1, MPT_INT) == false) break;
if (pCommand->GetParameter(&nUDPPort, 2, MPT_INT) == false) break;
// Not the best way to patch, but working for now
if (strstr(szIP, "%")) {
break;
}
OnRegisterAgent(pCommand->GetSenderUID(), szIP, nTCPPort, nUDPPort);
char szIP[128];
int nTCPPort, nUDPPort;

if (pCommand->GetParameter(&szIP, 0, MPT_STR, sizeof(szIP)) == false) break;
if (pCommand->GetParameter(&nTCPPort, 1, MPT_INT) == false) break;
if (pCommand->GetParameter(&nUDPPort, 2, MPT_INT) == false) break;

OnRegisterAgent(pCommand->GetSenderUID(), szIP, nTCPPort, nUDPPort);
}
break;
case MC_MATCH_UNREGISTERAGENT:
Expand Down
9 changes: 9 additions & 0 deletions README.md
@@ -1,3 +1,12 @@
# Gunz-Base

* Visual Studio 2019 withATL/MFC support. You can download the free Community edition at https://www.visualstudio.com/downloads/. In the installer, select the "Desktop development with C++," and on the right under "Summary," select "MFC and ATL support (x86 and x64)." [Picture here](https://i.imgur.com/BqXoiXu.png)).

New SRC Base 2019
<<<<<<< HEAD
Discord : Zeronis#0621
=======
### imbox:
[Discord : Zeronis#0621]
[http://fb.com/ZER0NIS]
>>>>>>> b99ea9fbd5b6c2b511d6f8ddc0d6c9319b42b08b

0 comments on commit 0033186

Please sign in to comment.