local connect fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3098 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -172,10 +172,10 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
}
|
||||
sessionid = getint(p);
|
||||
int oldcn = player1->clientnum;
|
||||
if(oldcn < 0 && mycn >= 0) sendintro();
|
||||
player1->clientnum = mycn; // we are now fully connected
|
||||
joining = getint(p);
|
||||
player1->clientnum = mycn;
|
||||
joining = getint(p);
|
||||
if(getint(p) > 0) conoutf("INFO: this server is password protected");
|
||||
if(oldcn < 0 && mycn >= 0) sendintro();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -3320,7 +3320,7 @@ void localconnect()
|
||||
c.type = ST_LOCAL;
|
||||
c.role = CR_ADMIN;
|
||||
s_strcpy(c.hostname, "local");
|
||||
sendintro();
|
||||
sendinits2c(c);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user