mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-07 19:27:45 +00:00
fix some event debug message formatting
This commit is contained in:
parent
a230a2ca2a
commit
efab738660
2 changed files with 4 additions and 4 deletions
|
@ -315,7 +315,7 @@ void Sapphire::Network::GameConnection::processOutQueue()
|
||||||
totalSize += pPacket->getSize();
|
totalSize += pPacket->getSize();
|
||||||
|
|
||||||
// todo: figure out a good max set size and make it configurable
|
// todo: figure out a good max set size and make it configurable
|
||||||
if( totalSize > 15000 )
|
if( totalSize > 10000 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ void Sapphire::Network::GameConnection::eventHandlerTalk( FrameworkPtr pFw,
|
||||||
std::string eventName = "onTalk";
|
std::string eventName = "onTalk";
|
||||||
std::string objName = pEventMgr->getEventName( eventId );
|
std::string objName = pEventMgr->getEventName( eventId );
|
||||||
|
|
||||||
player.sendDebug( "Chara: {0} -> {1} \neventId: {2} ({3:08X}",
|
player.sendDebug( "Chara: {0} -> {1} \neventId: {2} ({3:08X})",
|
||||||
actorId, pEventMgr->mapEventActorToRealActor( static_cast< uint32_t >( actorId ) ),
|
actorId, pEventMgr->mapEventActorToRealActor( static_cast< uint32_t >( actorId ) ),
|
||||||
eventId, eventId );
|
eventId, eventId );
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ void Sapphire::Network::GameConnection::eventHandlerEmote( FrameworkPtr pFw,
|
||||||
std::string eventName = "onEmote";
|
std::string eventName = "onEmote";
|
||||||
std::string objName = pEventMgr->getEventName( eventId );
|
std::string objName = pEventMgr->getEventName( eventId );
|
||||||
|
|
||||||
player.sendDebug( "Chara: {0} -> {1} \neventId: {2} ({3:08X}",
|
player.sendDebug( "Chara: {0} -> {1} \neventId: {2} ({3:08X})",
|
||||||
actorId, pEventMgr->mapEventActorToRealActor( static_cast< uint32_t >( actorId ) ),
|
actorId, pEventMgr->mapEventActorToRealActor( static_cast< uint32_t >( actorId ) ),
|
||||||
eventId, eventId );
|
eventId, eventId );
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ void Sapphire::Network::GameConnection::eventHandlerShop( FrameworkPtr pFw,
|
||||||
std::string eventName = "onOpen";
|
std::string eventName = "onOpen";
|
||||||
std::string objName = pEventMgr->getEventName( eventId );
|
std::string objName = pEventMgr->getEventName( eventId );
|
||||||
|
|
||||||
player.sendDebug( "EventId: {0} ({0:08X}", eventId );
|
player.sendDebug( "EventId: {0} ({0:08X})", eventId );
|
||||||
|
|
||||||
player.sendDebug( "Calling: {0}.{1}", objName, eventName );
|
player.sendDebug( "Calling: {0}.{1}", objName, eventName );
|
||||||
player.eventStart( player.getId(), eventId, Event::EventHandler::UI, 0, packet.data().param );
|
player.eventStart( player.getId(), eventId, Event::EventHandler::UI, 0, packet.data().param );
|
||||||
|
|
Loading…
Add table
Reference in a new issue