RevenantX / LiteNetLib

Lite reliable UDP library for Mono and .NET
https://revenantx.github.io/LiteNetLib/index.html
MIT License
3.06k stars 495 forks source link

Replace DEBUG pre-processing tags with Conditional attribute #557

Closed Charanor closed 2 months ago

Charanor commented 2 months ago

Fixes a bug where simulated packet loss and latency does not work unless end-user cloned repo. This is because those features were locked behind the DEBUG pre-processor tag. This PR replaces the #if DEBUG pre-processing tags with methods guarded by the [Conditional("DEBUG")] attribute instead.

Testing