Disabled EntityEvent debug messages from release builds
This commit is contained in:
@@ -326,6 +326,7 @@ namespace Barotrauma.Networking
|
||||
//skip the event if we've already received it or if the entity isn't found
|
||||
if (thisEventID != (UInt16)(sender.lastSentEntityEventID + 1) || entity == null)
|
||||
{
|
||||
#if DEBUG
|
||||
if (thisEventID != (UInt16)(sender.lastSentEntityEventID + 1))
|
||||
{
|
||||
DebugConsole.NewMessage("received msg " + thisEventID, Microsoft.Xna.Framework.Color.Red);
|
||||
@@ -334,6 +335,7 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
DebugConsole.NewMessage("received msg " + thisEventID + ", entity " + entityID + " not found", Microsoft.Xna.Framework.Color.Red);
|
||||
}
|
||||
#endif
|
||||
msg.Position += msgLength * 8;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user