From af200e715e9fcb4434da810495e870915ba16b7c Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 30 Jun 2024 22:38:49 +0800 Subject: [PATCH] [bot] Update `CNetGame::Init(...)` --- bot/net/netgame.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/net/netgame.cpp b/bot/net/netgame.cpp index 92631f2..055134b 100644 --- a/bot/net/netgame.cpp +++ b/bot/net/netgame.cpp @@ -212,17 +212,17 @@ void CNetGame::Init(PCHAR szHostOrIp, int iPort, sprintf(szGameModeFile, "npcmodes/%s.amx", szNpcMode); if (!m_pGameMode->Load(szGameModeFile)) + { + //logprintf("NPC: I can't load %s so I'm quiting.", szGameModeFile); exit(1); - + } + m_pRakClient->SetPassword(szPass); m_pRakClient->Connect(szHostOrIp,iPort,0,0,10); m_iGameState = GAMESTATE_CONNECTING; - /* - char s[256]; - sprintf(s,"Bot(%s): connecting to %s:%d...",szPlayerName,szHostOrIp,iPort); - OutputDebugString(s);*/ + //logprintf("NPC(%s): connecting to %s:%d...",szPlayerName,szHostOrIp,iPort); m_iSpawnsAvailable = 0; m_byteWorldTime = 12;