From: Mischa POSLAWSKY Date: Tue, 27 Feb 2007 10:48:03 +0000 (+0100) Subject: general function for distributing details X-Git-Url: http://git.shiar.net/netris.git/commitdiff_plain/b5a9cdfd671a10cd5b5e9f1f53105e9993414247 general function for distributing details Don't include program header in DistInfo() so it's usable in both server and client. --- diff --git a/game.c b/game.c index 6ad7e8b..79520aa 100644 --- a/game.c +++ b/game.c @@ -161,6 +161,7 @@ void HandleOption(char tag, char *value) case 'k': //keys MapKeys(value); break; case 'H': //info + Header(); DistInfo(); exit(0); case 'R': //rules Rules(); exit(0); diff --git a/server.c b/server.c index 39222bf..7d63e02 100644 --- a/server.c +++ b/server.c @@ -447,28 +447,6 @@ void SUsage(void) "\n", DEFAULT_PORT); } -/* -void DistInfo(void) -{ - SHeader(); - fprintf(stderr, - "This program is free software; you can redistribute it and/or modify\n" - "it under the terms of the GNU General Public License as published by\n" - "the Free Software Foundation; either version 2 of the License, or\n" - "(at your option) any later version.\n" - "\n" - "This program is distributed in the hope that it will be useful,\n" - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" - "GNU General Public License for more details.\n" - "\n" - "You should have received a copy of the GNU General Public License\n" - "along with this program; if not, write to the Free Software\n" - "Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n" - "\n"); -} //DistInfo -*/ - void WriteConf(void) { FILE *file_out; @@ -515,6 +493,7 @@ void HandleOption(char tag, char *value) Game.seed = atoi(value); break; case 'H': //info + SHeader(); DistInfo(); exit(0); case 'h': //help SUsage(); exit(0); diff --git a/util.c b/util.c index a55aeb0..791a007 100644 --- a/util.c +++ b/util.c @@ -91,7 +91,6 @@ void Usage(void) void DistInfo(void) { - Header(); fprintf(stderr, "This program is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n"