Network/ENetHost: Fix simulation being always active

This commit is contained in:
Jérôme Leclercq 2017-02-21 16:55:05 +01:00
parent 7322969b17
commit a53a916399
1 changed files with 1 additions and 1 deletions

View File

@ -1022,7 +1022,7 @@ namespace Nz
// Simulate network by adding delay to packet sending and losing some packets // Simulate network by adding delay to packet sending and losing some packets
bool sendNow = true; bool sendNow = true;
if (!currentPeer->IsSimulationEnabled()) if (currentPeer->IsSimulationEnabled())
{ {
sendNow = false; sendNow = false;
if (!currentPeer->m_packetLossProbability(s_randomGenerator)) if (!currentPeer->m_packetLossProbability(s_randomGenerator))