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:
Rafael Barreto
2010-05-16 21:34:52 +00:00
parent 70a7646d59
commit b336718efa
4 changed files with 12 additions and 17 deletions
+3 -1
View File
@@ -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;