no more c2s SV_ITEMLIST and SV_SPAWNLIST: the server is now required to have the map

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4361 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-04-27 21:35:47 +00:00
parent 7fb07228ca
commit c5a7abae90
9 changed files with 100 additions and 135 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ char *getclientmap() { return clientmap; }
void mapname() { result(getclientmap()); }
COMMAND(mapname, ARG_NONE);
extern bool c2sinit, senditemstoserver, sendspawnlist;
extern bool c2sinit, sendmapidenttoserver;
void setskin(playerent *pl, uint skin)
{
@@ -721,7 +721,7 @@ int suicided = -1;
void startmap(const char *name, bool reset) // called just after a map load
{
s_strcpy(clientmap, name);
senditemstoserver = sendspawnlist = true;
sendmapidenttoserver = true;
// Added by Rick
if(m_botmode) BotManager.BeginMap(name);
else kickallbots();