forked from UNLOZE/sm-plugins
fix UNLOZE+ReservedSlots
fix dependency unload error in a few plugins with LibraryExists in OnAllPluginsLoaded
This commit is contained in:
@@ -372,9 +372,15 @@ public void OnRunThinkFunctionsPost(bool simulating)
|
||||
g_aaLagRecords[i][iOldRecord].vecOrigin[2] == TmpRecord.vecOrigin[2])
|
||||
{
|
||||
g_aEntityLagData[i].iNotMoving++;
|
||||
if(g_aEntityLagData[i].iNotMoving == MAX_RECORDS)
|
||||
LogMessage("[%d] index %d, entity %d GOING TO SLEEP", GetGameTickCount(), i, g_aEntityLagData[i].iEntity);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(g_aEntityLagData[i].iNotMoving >= MAX_RECORDS)
|
||||
LogMessage("[%d] index %d, entity %d WAKING UP", GetGameTickCount(), i, g_aEntityLagData[i].iEntity);
|
||||
g_aEntityLagData[i].iNotMoving = 0;
|
||||
}
|
||||
|
||||
if(g_aEntityLagData[i].iNotMoving >= MAX_RECORDS)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user