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:
Rafael Barreto
2010-05-31 21:23:18 +00:00
parent 4e2fdddbcf
commit 85c6c481a4
+1 -1
View File
@@ -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);