serverinfo ip binding fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1469 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-22 18:36:53 +00:00
parent c461707617
commit f261d257b7
3 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ bool securemapcheck(char *map)
if(strstr(map, "maps/")==map || strstr(map, "maps\\")==map) map += strlen("maps/");
loopv(securemaps) if(!strcmp(securemaps[i], map))
{
conoutf("\f3map %s is secured, you can not send or overwrite it", map);
conoutf("\f3map %s is secured, you can not send, receive or overwrite it", map);
return true;
}
return false;
-6
View File
@@ -526,7 +526,6 @@ int suicided = -1;
void startmap(char *name) // called just after a map load
{
clearminimap();
//if(netmapstart()) { gamemode = 0;} //needs fixed to switch modes?
senditemstoserver = true;
// Added by Rick
if(m_botmode) BotManager.BeginMap(name);
@@ -539,12 +538,7 @@ void startmap(char *name) // called just after a map load
particlereset();
suicided = -1;
spawncycle = -1;
// FIXME
/*if(!m_mp(gamemode)) spawnplayer(player1);
else findplayerstart(player1);*/
respawnself();
player1->frags = player1->flagscore = player1->lifesequence = 0;
loopv(players) if(players[i]) players[i]->frags = players[i]->flagscore = players[i]->lifesequence = 0;
s_strcpy(clientmap, name);
+1 -1
View File
@@ -243,7 +243,7 @@ void servermsinit(const char *master, char *ip, int infoport, char *sdesc, bool
if(listen)
{
ENetAddress address = { ENET_HOST_ANY, infoport };
if(*ip && enet_address_set_host(&msaddress, ip)<0) printf("WARNING: server ip not resolved");
if(*ip && enet_address_set_host(&address, ip)<0) printf("WARNING: server ip not resolved");
pongsock = enet_socket_create(ENET_SOCKET_TYPE_DATAGRAM, &address);
if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n");
else enet_socket_set_option(pongsock, ENET_SOCKOPT_NONBLOCK, 1);