From 0d3a0f88e64bc61fa15920a3269e1c3a5240d0f9 Mon Sep 17 00:00:00 2001 From: Tim Newell Date: Sat, 15 Dec 2012 15:48:24 -0500 Subject: [PATCH] Bug fix for loading compiled dsos --- Engine/source/console/consoleFunctions.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Engine/source/console/consoleFunctions.cpp b/Engine/source/console/consoleFunctions.cpp index a2a6b1137..f8555d812 100644 --- a/Engine/source/console/consoleFunctions.cpp +++ b/Engine/source/console/consoleFunctions.cpp @@ -2023,8 +2023,10 @@ DefineEngineFunction( exec, bool, ( const char* fileName, bool noCalls, bool jou //} // If we had a DSO, let's check to see if we should be reading from it. - if(compiled && dsoFile != NULL && (scriptFile == NULL|| (scriptModifiedTime - dsoModifiedTime) > Torque::Time(0))) - { + //MGT: fixed bug with dsos not getting recompiled correctly + //Note: Using Nathan Martin's version from the forums since its easier to read and understand + if(compiled && dsoFile != NULL && (scriptFile == NULL|| (dsoModifiedTime >= scriptModifiedTime))) + { //MGT: end compiledStream = FileStream::createAndOpen( nameBuffer, Torque::FS::File::Read ); if (compiledStream) {