Explorar o código

a reminder that this isn't safe for dedicated servers that run a long time

Thomas "elfprince13" Dickerson %!s(int64=8) %!d(string=hai) anos
pai
achega
a8793a5048
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/console/simManager.cpp

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

@@ -99,7 +99,7 @@ U32 postEvent(SimObject *destObject, SimEvent* event,U32 time)
 
    Mutex::lockMutex(gEventQueueMutex);
 
-   if( time == -1 )
+	if( time == -1 ) // FIXME: a smart compiler will remove this check. - see http://garagegames.com/community/resources/view/19785 for a fix
       time = gCurrentTime;
 
    event->time = time;