Enforce the 15 character limit on names.

git-svn-id: http://odamex.net/svn/root/trunk@4105 b0bcef46-2027-0410-bd56-ab726e9a1d04
Add basic string and client validation functions.  Use on playerinfo.

git-svn-id: http://odamex.net/svn/root/trunk@4106 b0bcef46-2027-0410-bd56-ab726e9a1d04
If user fails userinfo validation, kick them out without reading the rest of their packet.

git-svn-id: http://odamex.net/svn/root/trunk@4107 b0bcef46-2027-0410-bd56-ab726e9a1d04
Test teams for negative team_t values.

enums are backed by an implementation-defined basic type, which is usually a _signed_ int.  This results in an OOB access to the team name array.

git-svn-id: http://odamex.net/svn/root/trunk@4108 b0bcef46-2027-0410-bd56-ab726e9a1d04
Don't add a newline when automatically setting sv_upnp_description.

Avoids a needless usage message for the "set" command on boot.

git-svn-id: http://odamex.net/svn/root/trunk@4109 b0bcef46-2027-0410-bd56-ab726e9a1d04
Make sure we can't send garbage to other players via chat or private message.

git-svn-id: http://odamex.net/svn/root/trunk@4110 b0bcef46-2027-0410-bd56-ab726e9a1d04
Fix a longstanding (at least 5 year old) display bug in the unused clc_changeteam message.

This message presumably allows you to change your team to something specific.  However, the client has no way to actually send this message to the server, since teams are usually changed in userinfo.  However, in addition to being the source of an out-of-bounds team array access a few commits ago, the team join message didn't even render correctly in the first place due to mismatched tokens in the format string.

git-svn-id: http://odamex.net/svn/root/trunk@4111 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Fix a bug introduced in r4067 where team colors were not applied while consoleplayer was spectating.

git-svn-id: http://odamex.net/svn/root/trunk@4112 b0bcef46-2027-0410-bd56-ab726e9a1d04
Fix instances where player actions would be attempted on players with null mobjs on the client.

git-svn-id: http://odamex.net/svn/root/trunk@4113 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Prevent a segfault while resolving the local IP address if the hostname resolution isn't configured properly in the OS (bug 1004). Thanks to Ant P. for the intial patch.

git-svn-id: http://odamex.net/svn/root/trunk@4114 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Add a CVAR co_fixzerotags (disabled by default) to allow proper handling of moving sector line specials with a tag of 0, similar to ZDoom 1.23b33. Vanilla Doom behavior has been restored when the CVAR is disabled, rather than the previous ZDoom 1.22 behavior that caused issues when a moving sector is re-triggered (bug 981).

git-svn-id: http://odamex.net/svn/root/trunk@4115 b0bcef46-2027-0410-bd56-ab726e9a1d04
I spent a little too long trying to dissect this function, so let's document it as a warning to others.

git-svn-id: http://odamex.net/svn/root/trunk@4119 b0bcef46-2027-0410-bd56-ab726e9a1d04
Fix up P_LookForPlayers().

It passes our test suite just as well as the the old function, but is much clearer and doesn't rely on direct access to the players vector.  I also think it covers more corner cases with gaps in playeringame, but I don't think we have a demo that covers that.

git-svn-id: http://odamex.net/svn/root/trunk@4120 b0bcef46-2027-0410-bd56-ab726e9a1d04
Fix being able to find registry keys for IWADs on Windows 64-bit builds.

git-svn-id: http://odamex.net/svn/root/trunk@4128 b0bcef46-2027-0410-bd56-ab726e9a1d04
Fix instances where the SDL libraries were "found" in Program Files.

git-svn-id: http://odamex.net/svn/root/trunk@4129 b0bcef46-2027-0410-bd56-ab726e9a1d04
Add a new cvar for custom crosshair colors: hud_crosshaircolor

git-svn-id: http://odamex.net/svn/root/trunk@4130 b0bcef46-2027-0410-bd56-ab726e9a1d04
Add red, green, and blue sliders for manipulating hex color variables.

Also add menu options for setting the crosshair color.

git-svn-id: http://odamex.net/svn/root/trunk@4131 b0bcef46-2027-0410-bd56-ab726e9a1d04
Add display menu options for team and enemy colors.

git-svn-id: http://odamex.net/svn/root/trunk@4132 b0bcef46-2027-0410-bd56-ab726e9a1d04
Add colored sliders.

git-svn-id: http://odamex.net/svn/root/trunk@4133 b0bcef46-2027-0410-bd56-ab726e9a1d04
Create a grey slider graphic and a color-square for rgb sliders.

git-svn-id: http://odamex.net/svn/root/trunk@4134 b0bcef46-2027-0410-bd56-ab726e9a1d04