From 7cecd18eee4f57ca5231499f8881c1cfb336db3b Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 25 Apr 2015 19:16:06 +0200 Subject: [PATCH] Save space in debug screen to display VPB and VPC --HG-- branch : develop --- code/ryzom/client/src/character_cl.cpp | 10 ++-------- code/ryzom/client/src/entity_cl.cpp | 14 ++++---------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/code/ryzom/client/src/character_cl.cpp b/code/ryzom/client/src/character_cl.cpp index 89c9b805b..7a811ce13 100644 --- a/code/ryzom/client/src/character_cl.cpp +++ b/code/ryzom/client/src/character_cl.cpp @@ -8388,14 +8388,8 @@ ADD_METHOD(void CCharacterCL::displayDebug(float x, float &y, float lineStep)) / TextContext->printfAt(x, y, "Prim Pos: %f %f %f", primFinalPos.x, primFinalPos.y, primFinalPos.z); y += lineStep; } - // Skeleton Ptr - TextContext->printfAt(x, y, "Skel Ptr: %p", &_Skeleton); - y += lineStep; - // Animset Ptr - TextContext->printfAt(x, y, "AnimSet Ptr: %p", _CurrentAnimSet[MOVE]); - y += lineStep; - // Current State Ptr - TextContext->printfAt(x, y, "State Ptr: %p", _CurrentState); + // Skeleton Ptr, Animset Ptr and Current State Ptr + TextContext->printfAt(x, y, "Skel Ptr: %p - AnimSet Ptr: %p - State Ptr: %p", &_Skeleton, _CurrentAnimSet[MOVE], _CurrentState); y += lineStep; // Display the target mount and rider. TextContext->printfAt(x, y, "Mount: %3u(Theoretical: %3u) Rider: %3u(Theoretical: %3u)", mount(), _TheoreticalMount, rider(), _TheoreticalRider); diff --git a/code/ryzom/client/src/entity_cl.cpp b/code/ryzom/client/src/entity_cl.cpp index 6a14d6400..bee6b1d1d 100644 --- a/code/ryzom/client/src/entity_cl.cpp +++ b/code/ryzom/client/src/entity_cl.cpp @@ -2104,11 +2104,8 @@ void CEntityCL::setEntityName(const ucstring &name) //--------------------------------------------------- void CEntityCL::displayDebug(float x, float &y, float lineStep) // virtual { - // Type - TextContext->printfAt(x, y, "Type: %d", Type); - y += lineStep; - // Slot - TextContext->printfAt(x, y, "Slot: %d", _Slot); + // Type and slot + TextContext->printfAt(x, y, "Type: %d - Slot: %d", Type, _Slot); y += lineStep; // Outpost TextContext->printfAt(x, y, "Outpost id:%d side:%s",this->getOutpostId(),OUTPOSTENUMS::toString(this->getOutpostSide()).c_str() ); @@ -2119,11 +2116,8 @@ void CEntityCL::displayDebug(float x, float &y, float lineStep) // virtual else TextContext->printfAt(x, y, "Name not received"); y += lineStep; - // Target - TextContext->printfAt(x, y, "Target: %d", _TargetSlot); - y += lineStep; - // DataSet Id - TextContext->printfAt(x, y, "DataSet Id: %u", _DataSetId); + // Target and DataSet Id + TextContext->printfAt(x, y, "Target: %d - DataSet Id: %u", _TargetSlot, _DataSetId); y += lineStep; // Sheet Id TextContext->printfAt(x, y, "Sheet: %d(%s)", _SheetId.asInt(), _SheetId.toString().c_str());