lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
622 stars 66 forks source link

Fix `client_just_disconnected` condition logic #99

Closed Shatur closed 11 months ago

Shatur commented 11 months ago

I screwed the logic in #96. We shouldn't just return true if transport is not found, we should compare it with previous one. And we should store just_connected state instead of just_disconnected because the default value of this param is false. I also updated client_just_connected to make it look similar.

lucaspoffo commented 11 months ago

Thanks!