in the current release of jfduke3d you can't pass commandline parameters starting with "/". I think the error is that the while-loop is continued at the marked line - if it wasn't continued, argv could be checked later...
game.c
while(i < argc)
{
c = argv[i];
if (((*c == '/') || (*c == '-')) && (!firstnet))
{
if (!Bstrcasecmp(c+1,"net"))
{
firstnet = i;
netparamcount = argc - i - 1;
netparam = (char **)calloc(netparamcount, sizeof(char**));
}
i++;
continue; // <------------- I THINK HERE IS THE ERROR
}
easy: delete the "i++;" and the "continue;" there =)
Nxskingdom at
ha ok :)
I wasn't too sure if something else was in fault.
TX at
AlgorithMan said
easy: delete the "i++;" and the "continue;" there =)
Uh, actually, to fix the problem you'd need to move them into the set of braces closed directly above them. The problem has been fixed another way for the next release, however. Your simple deletion "fix" would likely fuck everything up as the network parameters would end up being fed into the normal command line processor, giving you a lovely command line help dialog every time you attempted to play multiplayer.
AlgorithMan at
yes, you are right - but I'm not sure if it wouldn't work without these lines either...