diff --git a/src/configuration.c b/src/configuration.c index 5ff6770..71302f1 100644 --- a/src/configuration.c +++ b/src/configuration.c @@ -1,4 +1,4 @@ -/* $Id: configuration.c,v 1.70 2005/02/20 19:54:10 patty21 Exp $ +/* $Id: configuration.c,v 1.71 2005/03/27 19:22:42 stpohle Exp $ * configuration */ #include @@ -660,6 +660,7 @@ ReadPrgArgs (int argc, char **argv) printf ("\nProgramm options:\n"); printf (" -name PLAYERNAME - set the Playername\n"); printf (" -name2 PLAYERNAME - set the Playername for the second player\n"); + printf (" -gamename GAMENAME - set the name of the game\n"); printf (" -port PORT - set the local BomberClone port\n"); printf (" (Def.: 11000)\n"); printf (" -ogcport PORT - set the local OGC Port (Def.: 11100)\n"); @@ -678,6 +679,8 @@ ReadPrgArgs (int argc, char **argv) strncpy (bman.playername, argv[++i], LEN_PLAYERNAME); if (!strcmp (argv[i], "-name2")) strncpy (bman.player2name, argv[++i], LEN_PLAYERNAME); + if (!strcmp (argv[i], "-gamename")) + strncpy (bman.gamename, argv[++i], LEN_GAMENAME); if (!strcmp (argv[i], "-ogc")) bman.notifygamemaster = atoi (argv[++i]); if (!strcmp (argv[i], "-debug"))