From 0e87023e46a01831b4aec857046e5dbfe888dbf1 Mon Sep 17 00:00:00 2001 From: James Urquhart Date: Sat, 8 Nov 2014 00:01:01 +0000 Subject: [PATCH] Fix problem with formatting --- Engine/source/sfx/sfxSystem.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Engine/source/sfx/sfxSystem.cpp b/Engine/source/sfx/sfxSystem.cpp index a18d28616..9fcc526be 100644 --- a/Engine/source/sfx/sfxSystem.cpp +++ b/Engine/source/sfx/sfxSystem.cpp @@ -1266,17 +1266,15 @@ DefineEngineFunction( sfxGetAvailableDevices, const char*, (),, for ( S32 d=0; d < deviceInfo.size(); d++ ) { const SFXDeviceInfo* info = deviceInfo[d]; - const char *providerName = provider->getName().c_str(); - const char *infoName = info->name.c_str(); - dSprintf(ptr, len, "%s\t%s\t%s\t%i\n", providerName, infoName, info->hasHardware ? "1" : "0", info->maxBuffers); + const char *providerName = provider->getName().c_str(); + const char *infoName = info->name.c_str(); + dSprintf(ptr, len, "%s\t%s\t%s\t%i\n", providerName, infoName, info->hasHardware ? "1" : "0", info->maxBuffers); - ptr += dStrlen(deviceList); - len = 2048 - (ptr - deviceList); + ptr += dStrlen(deviceList); + len = 2048 - (ptr - deviceList); - if (len <= 0) + if (len <= 0) return deviceList; - - //TODO: caps } provider = provider->getNextProvider();