From f1e73807a8d91de2d6040a2998cb0944b5d1ba9a Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Tue, 20 Mar 2012 18:13:27 +0000 Subject: [PATCH] Fix formatting This was SVN commit r11377. --- source/scriptinterface/ScriptInterface.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/scriptinterface/ScriptInterface.cpp b/source/scriptinterface/ScriptInterface.cpp index c9af711a00..4ad6f6748f 100644 --- a/source/scriptinterface/ScriptInterface.cpp +++ b/source/scriptinterface/ScriptInterface.cpp @@ -617,11 +617,13 @@ void ScriptInterface::ReplaceNondeterministicFunctions(boost::rand48& rng) // Load a script which replaces some of the system dependent trig functions VfsPath path("globalscripts/Math.js"); - // This function is called from tests scripts without the VFS set up so silently fail because every other option seems worse - if (g_VFS && VfsFileExists(path) ){ + // This function is called from tests without the VFS set up, + // so silently fail in that case because every other option seems worse + if (g_VFS && VfsFileExists(path)) + { if (!this->LoadGlobalScriptFile(path)) { - LOGERROR(L"ReplaceNondeterministicFunctions: failed to load globalscripts/Math.js"); + LOGERROR(L"ReplaceNondeterministicFunctions: failed to load %ls", path.string().c_str()); return; } }