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

cl_shownet fix #178

Open
TomArrow opened this issue Oct 6, 2024 · 0 comments
Open

cl_shownet fix #178

TomArrow opened this issue Oct 6, 2024 · 0 comments

Comments

@TomArrow
Copy link

TomArrow commented Oct 6, 2024

	// shownet 2/3 will interleave with other printed info, -1 will
	// just print the delta records`
	if (cl_shownet->integer >= 2 || cl_shownet->integer == -1) {
		print = 1;
		Com_Printf("%3i: #%-3i ", msg->readcount, to->number);
	} else {
		print = 0;
	}

to->number in the print must be simply number. aka:

	// shownet 2/3 will interleave with other printed info, -1 will
	// just print the delta records`
	if (cl_shownet->integer >= 2 || cl_shownet->integer == -1) {
		print = 1;
		Com_Printf("%3i: #%-3i ", msg->readcount, number);
	} else {
		print = 0;
	}

Else it just takes a random number from parseEntitites, as to->number = number; happens only after this print. OpenJK has this fixed:

https://github.com/JACoders/OpenJK/blob/cb52f9fb2f4a80fd59bae799d3bb0f8ace730ad7/codemp/qcommon/msg.cpp#L1214

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

No branches or pull requests

1 participant