Pārlūkot izejas kodu

stop spamming the console every spawnObject call
assuming there was a spawnscript, the eval was also dumping that to the log

AzaezelX 1 gadu atpakaļ
vecāks
revīzija
c1e81e0327
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Engine/source/console/simManager.cpp

+ 1 - 1
Engine/source/console/simManager.cpp

@@ -436,7 +436,7 @@ SimObject *spawnObject(String spawnClass, String spawnDataBlock, String spawnNam
 
    // If we have a spawn script go ahead and execute it last
    if (spawnScript.isNotEmpty())
-      Con::evaluate(spawnScript.c_str(), true);
+      Con::evaluate(spawnScript.c_str());
 
    return spawnObject;
 }