v0.11.0.10
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
@@ -99,5 +100,16 @@ namespace Barotrauma
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static ushort DetermineNewOffset()
|
||||
{
|
||||
ushort idOffset = 0;
|
||||
foreach (Entity e in Entity.GetEntities())
|
||||
{
|
||||
if (e.ID > Entity.ReservedIDStart || e is Submarine) { continue; }
|
||||
idOffset = Math.Max(idOffset, e.ID);
|
||||
}
|
||||
return idOffset;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user