|
|
@ -423,7 +423,24 @@ ReadPrgArgs (int argc, char **argv)
|
|
|
|
strncpy (bman.port, argv[++i], LEN_PORT);
|
|
|
|
strncpy (bman.port, argv[++i], LEN_PORT);
|
|
|
|
if (!strcmp (argv[i], "-ogcport"))
|
|
|
|
if (!strcmp (argv[i], "-ogcport"))
|
|
|
|
strncpy (bman.ogc_port, argv[++i], LEN_PORT);
|
|
|
|
strncpy (bman.ogc_port, argv[++i], LEN_PORT);
|
|
|
|
}
|
|
|
|
if (!strcmp (argv[i], "-firewall"))
|
|
|
|
|
|
|
|
bman.firewall = 1;
|
|
|
|
|
|
|
|
if (!strcmp (argv[i], "-name"))
|
|
|
|
|
|
|
|
strncpy (bman.playername, argv[++i], LEN_PLAYERNAME);
|
|
|
|
|
|
|
|
if (!strcmp (argv[i], "-help")) {
|
|
|
|
|
|
|
|
printf ("BomberClone Version " VERSION "\n");
|
|
|
|
|
|
|
|
printf (" WebPage : http://www.bomberclone.de\n");
|
|
|
|
|
|
|
|
printf (" Bug Report to :\n");
|
|
|
|
|
|
|
|
printf (" http://sourceforge.net/tracker/?group_id=79449&atid=556629\n");
|
|
|
|
|
|
|
|
printf (" Other Comments: steffen@bomberclone.de\n");
|
|
|
|
|
|
|
|
printf ("\nProgramm options:\n");
|
|
|
|
|
|
|
|
printf (" -name PLAYERNAME - set the Playername\n");
|
|
|
|
|
|
|
|
printf (" -port PORT - set the local BomberClone port (Def.: 11000)\n");
|
|
|
|
|
|
|
|
printf (" -ogcport PORT - set the local OGC Port (Def.: 11100)\n");
|
|
|
|
|
|
|
|
printf (" -firewall - Client is behind a firewall\n");
|
|
|
|
|
|
|
|
printf (" Only set this if you get some problems\n");
|
|
|
|
|
|
|
|
printf (" with network games.\n");
|
|
|
|
|
|
|
|
exit (0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|