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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user