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:
Lee Salzman
2008-10-17 19:31:32 +00:00
parent 6024ce5cd5
commit caeebec77d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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;
}
+1 -1
View File
@@ -3320,7 +3320,7 @@ void localconnect()
c.type = ST_LOCAL;
c.role = CR_ADMIN;
s_strcpy(c.hostname, "local");
sendintro();
sendinits2c(c);
}
#endif