mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Fix the rest of the plString::Format calls
This commit is contained in:
@ -105,16 +105,15 @@ void plArmatureBehavior::DumpDebug(int &x, int &y, int lineHeight, plDebugText &
|
||||
{
|
||||
float strength = GetStrength();
|
||||
const char *onOff = strength > 0 ? "on" : "off";
|
||||
char blendBar[11] = "||||||||||";
|
||||
char blendBar[] = "||||||||||";
|
||||
int bars = (int)min(10 * strength, 10);
|
||||
blendBar[bars] = '\0';
|
||||
|
||||
plString details;
|
||||
if (fAnim)
|
||||
{
|
||||
plString animName = fAnim->GetName();
|
||||
float time = fAnim->GetTimeConvert()->CurrentAnimTime();
|
||||
details = plString::Format("%20s %3s time: %5.2f %s", animName.c_str(), onOff, time, blendBar);
|
||||
details = plFormat("{>20} {>3} time: {5.2f} {}", fAnim->GetName(), onOff, time, blendBar);
|
||||
}
|
||||
else
|
||||
details = plFormat(" Behavior {2} {>3} {}", fIndex, onOff, blendBar);
|
||||
|
Reference in New Issue
Block a user