Initial MSVC 2008 projects workspace
This commit is contained in:
18
l2ooghelper/packet_handlers/ph_CharCreateFail.cpp
Normal file
18
l2ooghelper/packet_handlers/ph_CharCreateFail.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "stdafx.h"
|
||||
#include "Logger.h"
|
||||
#include "L2Client.h"
|
||||
|
||||
void L2Client::ph_CharCreateFail( class L2Client *pcls, L2GamePacket *p )
|
||||
{
|
||||
L2Game_CharCreateFail *pf = new L2Game_CharCreateFail(
|
||||
p->getBytesPtr(), p->getPacketSize() );
|
||||
if( pf->parse( pcls->account.getL2Version() ) )
|
||||
{
|
||||
char reason[256] = {0};
|
||||
pf->reasonCodeToString( pf->p_reasonCode, reason );
|
||||
log_error( LOG_ERROR, "CharCreateFail: %s\n", reason );
|
||||
pcls->addChatToTabFormat( CHAT_SYS, L"Char create error: %S", reason );
|
||||
}
|
||||
delete pf;
|
||||
pf = NULL;
|
||||
}
|
Reference in New Issue
Block a user