1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-07 03:07:45 +00:00

fix some event debug message formatting

This commit is contained in:
NotAdam 2019-01-15 18:20:21 +11:00
parent a230a2ca2a
commit efab738660
2 changed files with 4 additions and 4 deletions

View file

@ -315,7 +315,7 @@ void Sapphire::Network::GameConnection::processOutQueue()
totalSize += pPacket->getSize();
// todo: figure out a good max set size and make it configurable
if( totalSize > 15000 )
if( totalSize > 10000 )
break;
}

View file

@ -48,7 +48,7 @@ void Sapphire::Network::GameConnection::eventHandlerTalk( FrameworkPtr pFw,
std::string eventName = "onTalk";
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 ) ),
eventId, eventId );
@ -90,7 +90,7 @@ void Sapphire::Network::GameConnection::eventHandlerEmote( FrameworkPtr pFw,
std::string eventName = "onEmote";
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 ) ),
eventId, eventId );
@ -269,7 +269,7 @@ void Sapphire::Network::GameConnection::eventHandlerShop( FrameworkPtr pFw,
std::string eventName = "onOpen";
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.eventStart( player.getId(), eventId, Event::EventHandler::UI, 0, packet.data().param );