This is an automated email from the git hooks/post-receive script. smcv pushed a commit to tag 1.51 in repository iortcw.
commit 133cb06cd303b5b992c38f6b4b9935d19a8e4bae Author: MAN-AT-ARMS <m4n4t4...@gmail.com> Date: Sat Dec 31 09:58:06 2016 -0500 All: Fix CD-Key entry --- MP/code/ui/ui_main.c | 3 ++- SP/code/ui/ui_main.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MP/code/ui/ui_main.c b/MP/code/ui/ui_main.c index e5f30d3..d4d8be7 100644 --- a/MP/code/ui/ui_main.c +++ b/MP/code/ui/ui_main.c @@ -4615,7 +4615,8 @@ static void UI_RunMenuScript( char **args ) { trap_Cvar_Set( "cdkey2", "" ); trap_Cvar_Set( "cdkey3", "" ); trap_Cvar_Set( "cdkey4", "" ); - if ( strlen( buff ) == CDKEY_LEN ) { + trap_Cvar_Set( "cdkeychecksum", "" ); + if ( buff[0] != 32 && strlen( buff ) == CDKEY_LEN ) { Q_strncpyz( out, buff, 5 ); trap_Cvar_Set( "cdkey1", out ); Q_strncpyz( out, buff + 4, 5 ); diff --git a/SP/code/ui/ui_main.c b/SP/code/ui/ui_main.c index 29fab69..ebd8044 100644 --- a/SP/code/ui/ui_main.c +++ b/SP/code/ui/ui_main.c @@ -4651,7 +4651,8 @@ static void UI_RunMenuScript( char **args ) { trap_Cvar_Set( "cdkey2", "" ); trap_Cvar_Set( "cdkey3", "" ); trap_Cvar_Set( "cdkey4", "" ); - if ( strlen( buff ) == CDKEY_LEN ) { + trap_Cvar_Set( "cdkeychecksum", "" ); + if ( buff[0] != 32 && strlen( buff ) == CDKEY_LEN ) { Q_strncpyz( out, buff, 5 ); trap_Cvar_Set( "cdkey1", out ); Q_strncpyz( out, buff + 4, 5 ); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits