non-overlapping player spawns in arena modes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2454 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-08-31 13:07:28 +00:00
parent 1301c5d88d
commit aab03618a5
3 changed files with 83 additions and 16 deletions
+6 -3
View File
@@ -308,9 +308,12 @@ void c2sinfo(playerent *d) // send update to the server
if(senditemstoserver)
{
packet->flags = ENET_PACKET_FLAG_RELIABLE;
putint(p, SV_ITEMLIST);
if(!m_noitems) putitems(p);
putint(p, -1);
if(maploaded > 0)
{
putint(p, SV_ITEMLIST);
if(!m_noitems) putitems(p);
putint(p, -1);
}
putint(p, SV_SPAWNLIST);
putint(p, maploaded);
if(maploaded > 0) loopi(3) putint(p, numspawn[i]);