mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Provide some plFormat samples with floats/doubles
This commit is contained in:
@ -257,10 +257,10 @@ static bool DumpSpecificMsgInfo(plMessage* msg, plString& info)
|
||||
PrintKIType(kGZFlashUpdate); // flash an update without saving (for animation of GZFill in)
|
||||
PrintKIType(kNoCommand);
|
||||
|
||||
info = plString::Format("Type: %s Str: %s User: %s(%d) Delay: %f Int: %d",
|
||||
info = plFormat("Type: {} Str: {} User: {}({}) Delay: {} Int: {}",
|
||||
typeName,
|
||||
kiMsg->GetString().c_str("(nil)"),
|
||||
kiMsg->GetUser().c_str("(nil)"),
|
||||
kiMsg->GetString(),
|
||||
kiMsg->GetUser(),
|
||||
kiMsg->GetPlayerID(),
|
||||
kiMsg->GetDelay(),
|
||||
kiMsg->GetIntValue());
|
||||
|
@ -1566,7 +1566,7 @@ void cyMisc::FogSetDefExp2(float end, float density)
|
||||
void cyMisc::SetClearColor(float red, float green, float blue)
|
||||
{
|
||||
// do this command via the console to keep the maxplugins from barfing
|
||||
plString command = plString::Format("Graphics.Renderer.SetClearColor %f %f %f", red, green, blue);
|
||||
plString command = plFormat("Graphics.Renderer.SetClearColor {f} {f} {f}", red, green, blue);
|
||||
|
||||
// create message to send to the console
|
||||
plControlEventMsg* pMsg = new plControlEventMsg;
|
||||
|
Reference in New Issue
Block a user