|
|
@ -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 */
|
|
|
|
* configuration */
|
|
|
|
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
#include <SDL.h>
|
|
|
@ -660,6 +660,7 @@ ReadPrgArgs (int argc, char **argv)
|
|
|
|
printf ("\nProgramm options:\n");
|
|
|
|
printf ("\nProgramm options:\n");
|
|
|
|
printf (" -name PLAYERNAME - set the Playername\n");
|
|
|
|
printf (" -name PLAYERNAME - set the Playername\n");
|
|
|
|
printf (" -name2 PLAYERNAME - set the Playername for the second player\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 (" -port PORT - set the local BomberClone port\n");
|
|
|
|
printf (" (Def.: 11000)\n");
|
|
|
|
printf (" (Def.: 11000)\n");
|
|
|
|
printf (" -ogcport PORT - set the local OGC Port (Def.: 11100)\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);
|
|
|
|
strncpy (bman.playername, argv[++i], LEN_PLAYERNAME);
|
|
|
|
if (!strcmp (argv[i], "-name2"))
|
|
|
|
if (!strcmp (argv[i], "-name2"))
|
|
|
|
strncpy (bman.player2name, argv[++i], LEN_PLAYERNAME);
|
|
|
|
strncpy (bman.player2name, argv[++i], LEN_PLAYERNAME);
|
|
|
|
|
|
|
|
if (!strcmp (argv[i], "-gamename"))
|
|
|
|
|
|
|
|
strncpy (bman.gamename, argv[++i], LEN_GAMENAME);
|
|
|
|
if (!strcmp (argv[i], "-ogc"))
|
|
|
|
if (!strcmp (argv[i], "-ogc"))
|
|
|
|
bman.notifygamemaster = atoi (argv[++i]);
|
|
|
|
bman.notifygamemaster = atoi (argv[++i]);
|
|
|
|
if (!strcmp (argv[i], "-debug"))
|
|
|
|
if (!strcmp (argv[i], "-debug"))
|
|
|
|