Commit b6f644cd authored by progs's avatar progs

a few modifications


git-svn-id: svn://svn.gna.org/svn/menareants/trunk@882 6832cf7c-ce15-0410-9f4e-c008ec2580bf
parent d8632f1e
......@@ -13,7 +13,8 @@ update:
@echo "Updating.."
@svn update
@echo "Compilation.."
@./config.status --recheck > /dev/null && make > /dev/null
@./config.status --recheck > /dev/null > /dev/null
@make
@echo "MenAreAnts is Up-to-date !"
@echo "You have to reinstall (with make install) this game."
......
......@@ -265,6 +265,7 @@ TClient *ECServer::addclient(int fd, const char *ip)
return 0;
}
newC = new TRealClient(fd, ip);
newC->SetLastRead(CurrentTS);
}
else
newC = new TIA;
......
......@@ -289,11 +289,18 @@ int LSPmsCommand::Exec(PlayerList players, EC_Client *me, ParvList parv)
}
me->LockScreen();
ListServerForm->ServerList->AddItem(false,
StringF("%4d %-27s %2s %3s/%-3s %3s/%-3s %-3s", SDL_GetTicks()-t0, parv[2].c_str(), parv[9].c_str(),
parv[4].c_str(), parv[5].c_str(), parv[6].c_str(), parv[7].c_str(), parv[8].c_str()),
parv[1], (parv[3][0] == '+' && parv[9] == APP_PVERSION) ? StrToTyp<int>(parv[4]) > 0 ? fgreen_color : black_color : red_color,
(parv[3][0] == '+' && parv[9] == APP_PVERSION));
if(parv[3][0] == '+' && parv[9] == APP_PVERSION && StrToTyp<int>(parv[4]) > 0)
ListServerForm->ServerList->AddItem(false,
StringF("%3d %-23s %2s %3s/%-3s %3s/%-3s %-3s", SDL_GetTicks()-t0, parv[2].substr(0,23).c_str(), parv[9].c_str(),
parv[4].c_str(), parv[5].c_str(), parv[6].c_str(), parv[7].c_str(), parv[8].c_str()),
parv[1], fgreen_color,
true, *Font::GetInstance(Font::Normal));
else
ListServerForm->ServerList->AddItem(false,
StringF("%4d %-27s %2s %3s/%-3s %3s/%-3s %-3s", SDL_GetTicks()-t0, parv[2].c_str(), parv[9].c_str(),
parv[4].c_str(), parv[5].c_str(), parv[6].c_str(), parv[7].c_str(), parv[8].c_str()),
parv[1], (parv[3][0] == '+' && parv[9] == APP_PVERSION) ? black_color : red_color,
(parv[3][0] == '+' && parv[9] == APP_PVERSION));
ListServerForm->nb_chans += StrToTyp<uint>(parv[6]);
ListServerForm->nb_wchans += StrToTyp<uint>(parv[8]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment