Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce code nesting in Recv() method #3241 #95

Conversation

teeworlds-mirror
Copy link
Collaborator

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
@ChillerDragon
Copy link
Member

Fixes no bugs. Useless code diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants