RunUO 2.4 will be the latest release supporting the 2.0 .NET Framework.
Framework_4_0 preprocessors have been removed. ScriptCompiler will set Framework_4_0 as legacy.
This commit is contained in:
parent
951f8b7d01
commit
e67faba4d8
20 changed files with 43 additions and 623 deletions
|
|
@ -22,10 +22,8 @@ using System;
|
|||
using System.IO;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
#if Framework_4_0
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
#endif
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
using Server.ContextMenus;
|
||||
|
|
@ -3305,7 +3303,6 @@ namespace Server
|
|||
|
||||
public static void ProcessDeltaQueue()
|
||||
{
|
||||
#if Framework_4_0
|
||||
_processing = true;
|
||||
|
||||
if (m_DeltaQueue.Count >= 512) {
|
||||
|
|
@ -3317,17 +3314,6 @@ namespace Server
|
|||
m_DeltaQueue.Clear();
|
||||
|
||||
_processing = false;
|
||||
#else
|
||||
int count = m_DeltaQueue.Count;
|
||||
|
||||
for (int i = 0; i < m_DeltaQueue.Count; ++i) {
|
||||
m_DeltaQueue[i].ProcessDelta();
|
||||
|
||||
if (i >= count)
|
||||
break;
|
||||
}
|
||||
m_DeltaQueue.Clear();
|
||||
#endif
|
||||
}
|
||||
|
||||
public virtual void OnDelete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue