coop void fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5126 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -70,7 +70,7 @@ struct mapaction : serveraction
|
||||
bool notify = valid_client(caller);
|
||||
int maploc = MAP_NOTFOUND;
|
||||
mapstats *ms = map[0] ? getservermapstats(map, false, &maploc) : NULL; // this is very redundant, since startgame gets the layout
|
||||
mapok = mode == GMODE_COOPEDIT || ( ms != NULL && mapisok(ms) );
|
||||
mapok = (mode == GMODE_COOPEDIT && strlen(map)) || ( ms != NULL && mapisok(ms) );
|
||||
if(!mapok)
|
||||
{
|
||||
if(notify) sendservmsg("the server does not have/support this map", caller);
|
||||
|
||||
Reference in New Issue
Block a user