Revision 6032010
Removed a potential issue causing the server to stuck in GameScreen.cs (Internal reports) Added an Warning message to SEEM
This commit is contained in:
+3
@@ -8,6 +8,9 @@ using System.Threading;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using static Barotrauma.EosInterface.Ownership;
|
using static Barotrauma.EosInterface.Ownership;
|
||||||
|
|
||||||
|
|
||||||
|
// DO NOT TOUCH ANYTHING HERE
|
||||||
|
// OR EVERYTHING WILL FAIL
|
||||||
namespace Barotrauma.Networking
|
namespace Barotrauma.Networking
|
||||||
{
|
{
|
||||||
class ServerEntityEvent : NetEntityEvent
|
class ServerEntityEvent : NetEntityEvent
|
||||||
|
|||||||
@@ -252,10 +252,11 @@ namespace Barotrauma
|
|||||||
Character.Controlled?.UpdateLocalCursor(cam);
|
Character.Controlled?.UpdateLocalCursor(cam);
|
||||||
|
|
||||||
#elif SERVER
|
#elif SERVER
|
||||||
Parallel.Invoke(parallelOptions,
|
if (Level.Loaded != null)
|
||||||
() => { if (Level.Loaded != null) Level.Loaded.Update((float)deltaTime, Camera.Instance); },
|
{
|
||||||
() => Character.UpdateAll((float)deltaTime, Camera.Instance)
|
Level.Loaded.Update((float)deltaTime, Camera.Instance);
|
||||||
);
|
}
|
||||||
|
Character.UpdateAll((float)deltaTime, Camera.Instance);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
var submarines = Submarine.Loaded.ToList();
|
var submarines = Submarine.Loaded.ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user