Disabled EntityEvent debug messages from release builds

This commit is contained in:
Regalis
2017-05-30 19:47:29 +03:00
parent 4c7a3b34fe
commit 87788b449e
2 changed files with 10 additions and 4 deletions

View File

@@ -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