masterserver uri resolving fix, cleanups
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1467 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -235,9 +235,9 @@ void serverms(int mode, int numplayers, int minremain, char *smapname, int milli
|
||||
void servermsinit(const char *master, char *ip, int infoport, char *sdesc, bool listen)
|
||||
{
|
||||
const char *mid = strstr(master, "/");
|
||||
if(!mid) mid = master;
|
||||
if(mid) s_strncpy(masterbase, master, mid-master+1);
|
||||
else s_strcpy(masterbase, (mid = master));
|
||||
s_strcpy(masterpath, mid);
|
||||
s_strncpy(masterbase, master, mid-master+1);
|
||||
s_strcpy(serverdesc, sdesc);
|
||||
|
||||
if(listen)
|
||||
|
||||
Reference in New Issue
Block a user