mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 18:59:09 +00:00
Fix the rest of the plString::Format calls
This commit is contained in:
@ -858,7 +858,7 @@ void plPXPhysicalControllerCore::IDrawDebugDisplay(int controllerIdx)
|
||||
{
|
||||
y = 10;
|
||||
debugString = plFormat("Controller Count: {}", gControllers.size());
|
||||
debugTxt.DrawString(x, y, debugString.c_str());
|
||||
debugTxt.DrawString(x, y, debugString);
|
||||
y += lineHeight;
|
||||
}
|
||||
|
||||
@ -868,7 +868,7 @@ void plPXPhysicalControllerCore::IDrawDebugDisplay(int controllerIdx)
|
||||
{
|
||||
debugString = plFormat("Controller #{} ({}) Collisions:",
|
||||
controllerIdx + 1, gControllers[controllerIdx]->fOwner->GetName());
|
||||
debugTxt.DrawString(x, y, debugString.c_str());
|
||||
debugTxt.DrawString(x, y, debugString);
|
||||
y += lineHeight;
|
||||
|
||||
for (int i = 0; i < collisionCount; i++)
|
||||
@ -876,11 +876,11 @@ void plPXPhysicalControllerCore::IDrawDebugDisplay(int controllerIdx)
|
||||
hsVector3 normal = fDbgCollisionInfo[i].fNormal;
|
||||
const char* overlapStr = fDbgCollisionInfo[i].fOverlap ? "yes" : "no";
|
||||
float angle = hsRadiansToDegrees(acos(normal * hsVector3(0, 0, 1)));
|
||||
debugString = plString::Format("\tObj: %s, Normal: (%.2f, %.2f, %.2f), Angle(%.1f), Overlap(%s)",
|
||||
fDbgCollisionInfo[i].fSO->GetKeyName().c_str(),
|
||||
debugString = plFormat("\tObj: {}, Normal: ({.2f}, {.2f}, {.2f}), Angle({.1f}), Overlap({})",
|
||||
fDbgCollisionInfo[i].fSO->GetKeyName(),
|
||||
normal.fX, normal.fY, normal.fZ, angle,
|
||||
overlapStr);
|
||||
debugTxt.DrawString(x, y, debugString.c_str());
|
||||
debugTxt.DrawString(x, y, debugString);
|
||||
y += lineHeight;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user