forked from teeworlds/teeworlds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce code nesting in Recv() method
Also replace the variable name `Result` with `Error` Since `UnpackPacket()` returns zero on success. This red a bit funny: if(!Result) { // do something with the result } It now is: if(Error) continue; // do something with the result
- Loading branch information
1 parent
a1911c8
commit 87e0299
Showing
2 changed files
with
121 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters