map vote/check fix (again)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5502 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-31 01:50:18 +00:00
parent 63f8634763
commit 8b988f622a
+1 -1
View File
@@ -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 && ( 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" );