Initial MSVC 2008 projects workspace
This commit is contained in:
22
l2ooghelper/L2Client_BotIPC.cpp
Normal file
22
l2ooghelper/L2Client_BotIPC.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "stdafx.h"
|
||||
#include "Resource.h"
|
||||
#include "Logger.h"
|
||||
#include "L2Client.h"
|
||||
|
||||
void L2Client::L2ClientThread_Game_BotIPC( class L2Client *pcls )
|
||||
{
|
||||
BOT_INFO bi;
|
||||
BotIPC *ipc = BotIPC::getInstance();
|
||||
ipc->getBotInfo( pcls->botipc_index, &bi );
|
||||
if( bi.isSlave )
|
||||
{
|
||||
if( bi.followEnable )
|
||||
{
|
||||
pcls->m_ai->setFollow( true, bi.oidFollow );
|
||||
}
|
||||
else
|
||||
{
|
||||
pcls->m_ai->setFollow( false, 0 );
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user