clean up, some commands from kirin (thank you for the work), some anticheat compatibilities, balance teams saner check, check for map quality in the maprot, and more clean up

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5651 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-08-17 15:03:41 +00:00
parent e36eee0a60
commit 9325b67f1a
11 changed files with 141 additions and 99 deletions
+7 -2
View File
@@ -25,8 +25,9 @@ const char *numtime()
}
extern char *maplayout, *testlayout;
extern int maplayout_factor, testlayout_factor, Mvolume, Marea;
extern int maplayout_factor, testlayout_factor, Mvolume, Marea, Mopen;
extern float Mheight;
extern int checkarea(int, char *);
mapstats *loadmapstats(const char *filename, bool getlayout)
{
@@ -126,7 +127,11 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
t = c;
}
if(fail) { DELETEA(testlayout); }
else Mheight = Marea ? (float)Mvolume/Marea : 0;
else
{
Mheight = Marea ? (float)Mvolume/Marea : 0;
Mopen = checkarea(testlayout_factor, testlayout);
}
}
if(getlayout)
{