mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 18:59:09 +00:00
Nuke some snprintf
This commit is contained in:
@ -346,9 +346,8 @@ bool plWin32StreamingSound::LoadSound( bool is3D )
|
||||
IRefreshEAXSettings( true );
|
||||
|
||||
// Debug info
|
||||
char str[ 256 ];
|
||||
snprintf( str, arrsize(str), " Streaming %s.", fSrcFilename.AsString().c_str() );
|
||||
IPrintDbgMessage( str );
|
||||
plString dbg = plString::Format(" Streaming %s.", fSrcFilename.AsString().c_str());
|
||||
IPrintDbgMessage(dbg.c_str());
|
||||
|
||||
plStatusLog::AddLineS( "audioTimes.log", 0xffffffff, "Streaming %4.2f secs of %s",
|
||||
fDataStream->GetLengthInSecs(), GetKey()->GetUoid().GetObjectName().c_str() );
|
||||
|
@ -1235,9 +1235,8 @@ void plNetClientMgr::IDisableNet () {
|
||||
if (!GetFlagsBit(plNetClientApp::kPlayingGame))
|
||||
{
|
||||
// KI may not be loaded
|
||||
char title[256];
|
||||
snprintf(title, arrsize(title), "%s Error", plProduct::CoreName().c_str());
|
||||
hsMessageBox(fDisableMsg->str, title, hsMessageBoxNormal, hsMessageBoxIconError );
|
||||
plString title = plString::Format("%s Error", plProduct::CoreName().c_str());
|
||||
hsMessageBox(fDisableMsg->str, title.c_str(), hsMessageBoxNormal, hsMessageBoxIconError );
|
||||
plClientMsg *quitMsg = new plClientMsg(plClientMsg::kQuit);
|
||||
quitMsg->Send(hsgResMgr::ResMgr()->FindKey(kClient_KEY));
|
||||
}
|
||||
|
Reference in New Issue
Block a user