xtreme8000 / BetterSpades

BetterSpades, an Ace of Spades client targeted at low end systems (GL/ES 1.1). Runs on your grandmother's rig!
https://aos.party/jenkins/job/BetterSpades/
GNU General Public License v3.0
243 stars 40 forks source link

Optimization: destroy ENet host on disconnect #166

Open utf-4096 opened 2 years ago

utf-4096 commented 2 years ago

This fixes a problem I've encountered with NAT, where the server port would only be forwarded after a client restart (while OpenSpades only requires you to reconnect, because it destroys the host on disconnect). The ENet host variable also isn't used after being disconnected, so it's probably best to destroy it.

utf-4096 commented 2 years ago

Tested NAT on the original client and it is working as intended.