Some bad maps will be blocked from now, and a bit more spread to shotgun
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4886 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -26,6 +26,7 @@ const char *numtime()
|
||||
|
||||
extern char *maplayout;
|
||||
extern int maplayout_factor, Mvolume, Marea;
|
||||
extern float Mheight;
|
||||
|
||||
mapstats *loadmapstats(const char *filename, bool getlayout)
|
||||
{
|
||||
@@ -126,7 +127,8 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
|
||||
if(fail) break;
|
||||
t = c;
|
||||
}
|
||||
if(fail) DELETEA(maplayout);
|
||||
if(fail) { DELETEA(maplayout); }
|
||||
else Mheight = Marea ? (float)Mvolume/Marea : 0;
|
||||
}
|
||||
}
|
||||
delete f;
|
||||
|
||||
Reference in New Issue
Block a user