*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@901 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-04-03 00:12:57 +00:00
parent 98649e983a
commit 52b792ecf2
4 changed files with 15 additions and 12 deletions
+4 -7
View File
@@ -373,17 +373,14 @@ void ctfreset()
void sendteamtext(char *text, int sender)
{
if(!clients[sender]->team[0]) return;
ENetPacket *packet = enet_packet_create(NULL, MAXTRANS, ENET_PACKET_FLAG_RELIABLE);
ucharbuf p(packet->data, packet->dataLength);
putint(p, SV_TEAMTEXT);
s_sprintfd(msg)("%s:\f1%s", clients[sender]->name, text);
sendstring(msg, p);
putint(p, sender);
sendstring(text, p);
enet_packet_resize(packet, p.length());
loopv(clients)
{
if(i==sender) continue;
if(!strcmp(clients[i]->team, clients[sender]->team)) sendpacket(i, 1, packet);
}
loopv(clients) if(i!=sender && !strcmp(clients[i]->team, clients[sender]->team)) sendpacket(i, 1, packet);
if(packet->referenceCount==0) enet_packet_destroy(packet);
}