gcc warning fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2506 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -135,7 +135,6 @@ void trypickup(int n, playerent *d)
|
||||
|
||||
void trypickupflag(int flag, playerent *d)
|
||||
{
|
||||
entity &e = *flaginfos[flag].flagent;
|
||||
if(d==player1)
|
||||
{
|
||||
flaginfo &f = flaginfos[flag];
|
||||
|
||||
@@ -1421,12 +1421,15 @@ void readblacklist(const char *name)
|
||||
}
|
||||
delete[] buf;
|
||||
blacklist.sort(cmpiprange);
|
||||
if(verbose) loopv(blacklist)
|
||||
if(verbose)
|
||||
{
|
||||
if(blacklist[i].lr == blacklist[i].ur)
|
||||
logger->writeline(log::info," %s", iptoa(blacklist[i].lr, 0));
|
||||
else
|
||||
logger->writeline(log::info," %s-%s", iptoa(blacklist[i].lr, 0), iptoa(blacklist[i].ur, 1));
|
||||
loopv(blacklist)
|
||||
{
|
||||
if(blacklist[i].lr == blacklist[i].ur)
|
||||
logger->writeline(log::info," %s", iptoa(blacklist[i].lr, 0));
|
||||
else
|
||||
logger->writeline(log::info," %s-%s", iptoa(blacklist[i].lr, 0), iptoa(blacklist[i].ur, 1));
|
||||
}
|
||||
}
|
||||
logger->writeline(log::info,"read %d blacklist entries from %s", blacklist.length(), blfilename);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user