fixing the coop vote/map check issues, adding some anticheat compatibility

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5500 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-31 00:16:58 +00:00
parent 50ba54629b
commit 3e4c92b493
4 changed files with 23 additions and 19 deletions
+2
View File
@@ -134,6 +134,8 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
if (testlayout)
{
maplayout_factor = testlayout_factor;
extern int maplayoutssize;
maplayoutssize = 1 << testlayout_factor;
int layoutsize = 1 << (testlayout_factor * 2);
maplayout = new char[layoutsize + 256];
memcpy(maplayout, testlayout, layoutsize * sizeof(char));