mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Update CNetGame constructor
This commit is contained in:
1 parent
890e3a92a5
commit
7fe0cca7de
2 files changed
+22
-6
No files matched your search
+14
-2
@@ -1,7 +1,19 @@
|
||||
|
||||
#include "netgame.h"
|
||||
#include "../main.h"
|
||||
|
||||
CNetGame::CNetGame(char *a2, int a3, char *a4, char *a5)
|
||||
CNetGame::CNetGame(PCHAR szHostOrIp, int iPort,
|
||||
PCHAR szPlayerName, PCHAR szPass)
|
||||
{
|
||||
field_3D5 = (struc_41*)calloc(1,sizeof(struc_41));
|
||||
|
||||
memset(m_szHostName,0,256);
|
||||
memset(m_szHostOrIp,0,256);
|
||||
|
||||
strcpy(m_szHostName, "SA-MP");
|
||||
strncpy(m_szHostOrIp, szHostOrIp, sizeof(m_szHostOrIp));
|
||||
m_iPort = iPort;
|
||||
|
||||
m_iGameState = GAMESTATE_WAIT_CONNECT;
|
||||
|
||||
// TODO: CNetGame::CNetGame(...) .text:1000B930
|
||||
}
|
||||
Reference in new issue
Block a user