From 85c6c481a4017967c08266feffb8bb5dfb0be3b4 Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Mon, 31 May 2010 21:23:18 +0000 Subject: [PATCH] coop void fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5126 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 8e8e3205..e060c78d 100644 --- a/source/src/serveractions.h +++ b/source/src/serveractions.h @@ -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);