From ae71b35a278c3ce94f4ed867e411a14fc2e30340 Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Sat, 31 Jul 2010 02:20:57 +0000 Subject: [PATCH] i do not believe i am committing this same fix again git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5506 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/serveractions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/serveractions.h b/source/src/serveractions.h index 98527106..9ae6838f 100644 --- a/source/src/serveractions.h +++ b/source/src/serveractions.h @@ -81,7 +81,7 @@ struct mapaction : serveraction bool notify = valid_client(caller); int maploc = MAP_NOTFOUND; mapstats *ms = map[0] ? getservermapstats(map, false, &maploc) : NULL; - mapok = ms != NULL && ( mapisok(ms) || ( mode == GMODE_COOPEDIT && !readonlymap(maploc) ) ); + mapok = ms != NULL && ( (mode != GMODE_COOPEDIT && mapisok(ms)) || (mode == GMODE_COOPEDIT && !readonlymap(maploc)) ); if(!mapok) { defformatstring(msg)("%s", ms ? ( readonlymap(maploc) ? "this map cannot be coopedited in this server" : "sorry, but this map does not satisfy some quality requisites to be played in MultiPlayer Mode" ) : "the server does not have this map" );