Network/ENetHost: Fix simulation being always active
This commit is contained in:
parent
7322969b17
commit
a53a916399
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue