From a53a916399058c326e58fcf846ac89481197a169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Tue, 21 Feb 2017 16:55:05 +0100 Subject: [PATCH] Network/ENetHost: Fix simulation being always active --- src/Nazara/Network/ENetHost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nazara/Network/ENetHost.cpp b/src/Nazara/Network/ENetHost.cpp index 84083b24d..d32b6d5f9 100644 --- a/src/Nazara/Network/ENetHost.cpp +++ b/src/Nazara/Network/ENetHost.cpp @@ -1022,7 +1022,7 @@ namespace Nz // Simulate network by adding delay to packet sending and losing some packets bool sendNow = true; - if (!currentPeer->IsSimulationEnabled()) + if (currentPeer->IsSimulationEnabled()) { sendNow = false; if (!currentPeer->m_packetLossProbability(s_randomGenerator))